Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit a249a96

Browse files
committed
Omit Needless Borrows
1 parent 4b7e7cc commit a249a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn try_main() -> Result<(), ProgramError> {
7474

7575
let suggestions: Vec<Suggestion> = json.lines()
7676
.filter(not_empty)
77-
.flat_map(|line| serde_json::from_str::<Diagnostic>(&line))
77+
.flat_map(|line| serde_json::from_str::<Diagnostic>(line))
7878
.flat_map(|diagnostic| rustfix::collect_suggestions(&diagnostic, None))
7979
.collect();
8080

@@ -84,7 +84,7 @@ fn try_main() -> Result<(), ProgramError> {
8484
}
8585

8686
fn json_from_file(file_name: &str) -> Result<String, ProgramError> {
87-
read_file_to_string(&file_name).map_err(From::from)
87+
read_file_to_string(file_name).map_err(From::from)
8888
}
8989

9090
fn json_from_subcommand(subcommand: &str) -> Result<String, ProgramError> {

0 commit comments

Comments
 (0)