mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
Fix clippy errors on nightly (#2688)
This commit is contained in:
parent
6685f9adb3
commit
57d7d00701
3 changed files with 6 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue