mirror of
https://github.com/gitui-org/gitui.git
synced 2026-10-12 02:14:16 +00:00
Fix clippy errors on nightly (#2688)
This commit is contained in:
@@ -251,8 +251,8 @@ impl FileRevlogPopup {
|
||||
};
|
||||
let revisions = self.get_max_selection();
|
||||
|
||||
self.open_request.as_ref().map_or(
|
||||
"<no history available>".into(),
|
||||
self.open_request.as_ref().map_or_else(
|
||||
|| "<no history available>".into(),
|
||||
|open_request| {
|
||||
strings::file_log_title(
|
||||
&open_request.file_path,
|
||||
|
||||
+2
-2
@@ -195,8 +195,8 @@ impl PushPopup {
|
||||
pub fn get_progress(
|
||||
progress: Option<&RemoteProgress>,
|
||||
) -> (String, u8) {
|
||||
progress.as_ref().map_or(
|
||||
(strings::PUSH_POPUP_PROGRESS_NONE.into(), 0),
|
||||
progress.as_ref().map_or_else(
|
||||
|| (strings::PUSH_POPUP_PROGRESS_NONE.into(), 0),
|
||||
|progress| {
|
||||
(
|
||||
Self::progress_state_name(&progress.state),
|
||||
|
||||
@@ -131,8 +131,8 @@ impl PushTagsPopup {
|
||||
pub fn get_progress(
|
||||
progress: Option<&PushTagsProgress>,
|
||||
) -> (String, u8) {
|
||||
progress.as_ref().map_or(
|
||||
(strings::PUSH_POPUP_PROGRESS_NONE.into(), 0),
|
||||
progress.as_ref().map_or_else(
|
||||
|| (strings::PUSH_POPUP_PROGRESS_NONE.into(), 0),
|
||||
|progress| {
|
||||
(
|
||||
Self::progress_state_name(progress),
|
||||
|
||||
Reference in New Issue
Block a user