added clippy suggestions
This commit is contained in:
@@ -70,12 +70,10 @@ pub fn ui(frame: &mut Frame, app: &mut AppState) {
|
||||
let area = centered_rect(60, 25, titleBodyChunks[1]);
|
||||
frame.render_widget(Clear, area);
|
||||
frame.render_widget(
|
||||
exitPrompt::getExitPara({
|
||||
match app.appStatus {
|
||||
AppStatus::Saved | AppStatus::Welcome => true,
|
||||
_ => false,
|
||||
}
|
||||
}),
|
||||
exitPrompt::getExitPara(matches!(
|
||||
app.appStatus,
|
||||
AppStatus::Saved | AppStatus::Welcome
|
||||
)),
|
||||
area,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user