Address clippy issues on nightly (#2707)

This commit is contained in:
Christoph Rüßler 2025-09-08 10:31:11 +02:00 committed by GitHub
parent fd46b9a0c1
commit 8bff603a72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 5 additions and 7 deletions

View file

@ -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,
}));

View file

@ -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,

View file

@ -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())
}
}

View file

@ -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(

View file

@ -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,
);

View file

@ -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(