mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
Address clippy issues on nightly (#2707)
This commit is contained in:
parent
fd46b9a0c1
commit
8bff603a72
6 changed files with 5 additions and 7 deletions
|
|
@ -104,7 +104,7 @@ impl CommandBar {
|
|||
line_width += entry_w + 1;
|
||||
|
||||
self.draw_list.push(DrawListEntry::Command(Command {
|
||||
txt: c.text.name.to_string(),
|
||||
txt: c.text.name.clone(),
|
||||
enabled: c.enabled,
|
||||
line: lines.saturating_sub(1) as usize,
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -44,11 +44,9 @@
|
|||
clippy::unwrap_used,
|
||||
clippy::filetype_is_file,
|
||||
clippy::cargo,
|
||||
clippy::unwrap_used,
|
||||
clippy::panic,
|
||||
clippy::match_like_matches_macro
|
||||
)]
|
||||
#![allow(clippy::module_name_repetitions)]
|
||||
#![allow(
|
||||
clippy::multiple_crate_versions,
|
||||
clippy::bool_to_int_with_if,
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ impl Options {
|
|||
|
||||
index = entries.saturating_sub(1) - index;
|
||||
|
||||
Some(self.data.commit_msgs[index].to_string())
|
||||
Some(self.data.commit_msgs[index].clone())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -557,7 +557,7 @@ impl BranchListPopup {
|
|||
theme.commit_hash(selected),
|
||||
);
|
||||
let span_msg = Span::styled(
|
||||
commit_message.to_string(),
|
||||
commit_message.clone(),
|
||||
theme.text(true, selected),
|
||||
);
|
||||
let span_name = Span::styled(
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ impl FileRevlogPopup {
|
|||
{
|
||||
if params == diff_params {
|
||||
self.diff.update(
|
||||
open_request.file_path.to_string(),
|
||||
open_request.file_path.clone(),
|
||||
false,
|
||||
last,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -449,7 +449,7 @@ impl SubmodulesListPopup {
|
|||
theme.text(false, false),
|
||||
)]),
|
||||
Line::from(vec![Span::styled(
|
||||
self.repo_path.to_string(),
|
||||
self.repo_path.clone(),
|
||||
theme.text(true, false),
|
||||
)]),
|
||||
Line::from(vec![Span::styled(
|
||||
|
|
|
|||
Loading…
Reference in a new issue