File tree Expand file tree Collapse file tree 6 files changed +5
-7
lines changed Expand file tree Collapse file tree 6 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ impl CommandBar {
104
104
line_width += entry_w + 1 ;
105
105
106
106
self . draw_list . push ( DrawListEntry :: Command ( Command {
107
- txt : c. text . name . to_string ( ) ,
107
+ txt : c. text . name . clone ( ) ,
108
108
enabled : c. enabled ,
109
109
line : lines. saturating_sub ( 1 ) as usize ,
110
110
} ) ) ;
Original file line number Diff line number Diff line change 44
44
clippy:: unwrap_used,
45
45
clippy:: filetype_is_file,
46
46
clippy:: cargo,
47
- clippy:: unwrap_used,
48
47
clippy:: panic,
49
48
clippy:: match_like_matches_macro
50
49
) ]
51
- #![ allow( clippy:: module_name_repetitions) ]
52
50
#![ allow(
53
51
clippy:: multiple_crate_versions,
54
52
clippy:: bool_to_int_with_if,
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ impl Options {
133
133
134
134
index = entries. saturating_sub ( 1 ) - index;
135
135
136
- Some ( self . data . commit_msgs [ index] . to_string ( ) )
136
+ Some ( self . data . commit_msgs [ index] . clone ( ) )
137
137
}
138
138
}
139
139
Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ impl BranchListPopup {
557
557
theme. commit_hash ( selected) ,
558
558
) ;
559
559
let span_msg = Span :: styled (
560
- commit_message. to_string ( ) ,
560
+ commit_message. clone ( ) ,
561
561
theme. text ( true , selected) ,
562
562
) ;
563
563
let span_name = Span :: styled (
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ impl FileRevlogPopup {
171
171
{
172
172
if params == diff_params {
173
173
self . diff . update (
174
- open_request. file_path . to_string ( ) ,
174
+ open_request. file_path . clone ( ) ,
175
175
false ,
176
176
last,
177
177
) ;
Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ impl SubmodulesListPopup {
449
449
theme. text( false , false ) ,
450
450
) ] ) ,
451
451
Line :: from( vec![ Span :: styled(
452
- self . repo_path. to_string ( ) ,
452
+ self . repo_path. clone ( ) ,
453
453
theme. text( true , false ) ,
454
454
) ] ) ,
455
455
Line :: from( vec![ Span :: styled(
You can’t perform that action at this time.
0 commit comments