mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28: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();
|
let revisions = self.get_max_selection();
|
||||||
|
|
||||||
self.open_request.as_ref().map_or(
|
self.open_request.as_ref().map_or_else(
|
||||||
"<no history available>".into(),
|
|| "<no history available>".into(),
|
||||||
|open_request| {
|
|open_request| {
|
||||||
strings::file_log_title(
|
strings::file_log_title(
|
||||||
&open_request.file_path,
|
&open_request.file_path,
|
||||||
|
|
|
||||||
|
|
@ -195,8 +195,8 @@ impl PushPopup {
|
||||||
pub fn get_progress(
|
pub fn get_progress(
|
||||||
progress: Option<&RemoteProgress>,
|
progress: Option<&RemoteProgress>,
|
||||||
) -> (String, u8) {
|
) -> (String, u8) {
|
||||||
progress.as_ref().map_or(
|
progress.as_ref().map_or_else(
|
||||||
(strings::PUSH_POPUP_PROGRESS_NONE.into(), 0),
|
|| (strings::PUSH_POPUP_PROGRESS_NONE.into(), 0),
|
||||||
|progress| {
|
|progress| {
|
||||||
(
|
(
|
||||||
Self::progress_state_name(&progress.state),
|
Self::progress_state_name(&progress.state),
|
||||||
|
|
|
||||||
|
|
@ -131,8 +131,8 @@ impl PushTagsPopup {
|
||||||
pub fn get_progress(
|
pub fn get_progress(
|
||||||
progress: Option<&PushTagsProgress>,
|
progress: Option<&PushTagsProgress>,
|
||||||
) -> (String, u8) {
|
) -> (String, u8) {
|
||||||
progress.as_ref().map_or(
|
progress.as_ref().map_or_else(
|
||||||
(strings::PUSH_POPUP_PROGRESS_NONE.into(), 0),
|
|| (strings::PUSH_POPUP_PROGRESS_NONE.into(), 0),
|
||||||
|progress| {
|
|progress| {
|
||||||
(
|
(
|
||||||
Self::progress_state_name(progress),
|
Self::progress_state_name(progress),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue