feat(tags): add 'tags' command to display git tags #5
clippy
22 warnings
Details
Results
| Message level | Amount |
|---|---|
| Internal compiler error | 0 |
| Error | 0 |
| Warning | 22 |
| Note | 0 |
| Help | 0 |
Versions
- rustc 1.88.0 (6b00bc388 2025-06-23)
- cargo 1.88.0 (873a06493 2025-05-10)
- clippy 0.1.88 (6b00bc3880 2025-06-23)
Annotations
Check warning on line 129 in src/main.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/main.rs:129:9
|
129 | eprintln!("Error showing tags: {}", e);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
129 - eprintln!("Error showing tags: {}", e);
129 + eprintln!("Error showing tags: {e}");
|
Check warning on line 123 in src/main.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/main.rs:123:9
|
123 | eprintln!("Error finishing branch: {}", e);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
123 - eprintln!("Error finishing branch: {}", e);
123 + eprintln!("Error finishing branch: {e}");
|
Check warning on line 82 in src/main.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/main.rs:82:7
|
82 | println!("{}\t\t(copied to clipboard)", dir_str);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
82 - println!("{}\t\t(copied to clipboard)", dir_str);
82 + println!("{dir_str}\t\t(copied to clipboard)");
|
Check warning on line 68 in src/main.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/main.rs:68:11
|
68 | print!("\t{:?}", v);
| ^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
68 - print!("\t{:?}", v);
68 + print!("\t{v:?}");
|
Check warning on line 65 in src/main.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/main.rs:65:11
|
65 | print!("\t{:?}", v);
| ^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
65 - print!("\t{:?}", v);
65 + print!("\t{v:?}");
|
Check warning on line 30 in src/main.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/main.rs:30:9
|
30 | println!("{}\t\t(copied to clipboard)", my_local_ip);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
30 - println!("{}\t\t(copied to clipboard)", my_local_ip);
30 + println!("{my_local_ip}\t\t(copied to clipboard)");
|
Check warning on line 25 in src/main.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/main.rs:25:11
|
25 | println!("{}:\t{:?}", name, ip);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
25 - println!("{}:\t{:?}", name, ip);
25 + println!("{name}:\t{ip:?}");
|
Check warning on line 121 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:121:18
|
121 | repo.set_head(&format!("refs/heads/{}", branch_name))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
121 - repo.set_head(&format!("refs/heads/{}", branch_name))?;
121 + repo.set_head(&format!("refs/heads/{branch_name}"))?;
|
Check warning on line 111 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:111:3
|
111 | println!("Successfully fetched and updated {} branch", main_branch);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
111 - println!("Successfully fetched and updated {} branch", main_branch);
111 + println!("Successfully fetched and updated {main_branch} branch");
|
Check warning on line 98 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:98:52
|
98 | let status = Command::new("git").args(["merge", &format!("origin/{}", main_branch)]).status()?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
98 - let status = Command::new("git").args(["merge", &format!("origin/{}", main_branch)]).status()?;
98 + let status = Command::new("git").args(["merge", &format!("origin/{main_branch}")]).status()?;
|
Check warning on line 51 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:51:3
|
51 | println!("Finished! You are now on the {} branch", main_branch);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
51 - println!("Finished! You are now on the {} branch", main_branch);
51 + println!("Finished! You are now on the {main_branch} branch");
|
Check warning on line 48 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:48:5
|
48 | println!("Branch '{}' was not deleted", current_branch_name);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
48 - println!("Branch '{}' was not deleted", current_branch_name);
48 + println!("Branch '{current_branch_name}' was not deleted");
|
Check warning on line 46 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:46:5
|
46 | println!("Deleted branch '{}'", current_branch_name);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
46 - println!("Deleted branch '{}'", current_branch_name);
46 + println!("Deleted branch '{current_branch_name}'");
|
Check warning on line 38 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:38:3
|
38 | print!("Delete branch '{}'? (y/N): ", current_branch_name);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
38 - print!("Delete branch '{}'? (y/N): ", current_branch_name);
38 + print!("Delete branch '{current_branch_name}'? (y/N): ");
|
Check warning on line 34 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:34:3
|
34 | println!("Fetching and pulling latest changes on {} branch...", main_branch);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
34 - println!("Fetching and pulling latest changes on {} branch...", main_branch);
34 + println!("Fetching and pulling latest changes on {main_branch} branch...");
|
Check warning on line 30 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:30:3
|
30 | println!("Switching to {} branch...", main_branch);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
30 - println!("Switching to {} branch...", main_branch);
30 + println!("Switching to {main_branch} branch...");
|
Check warning on line 27 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:27:3
|
27 | println!("Detected main branch: {}", main_branch);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
27 - println!("Detected main branch: {}", main_branch);
27 + println!("Detected main branch: {main_branch}");
|
Check warning on line 21 in src/git.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/git.rs:21:5
|
21 | println!("Already on {} branch, nothing to do", current_branch_name);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
21 - println!("Already on {} branch, nothing to do", current_branch_name);
21 + println!("Already on {current_branch_name} branch, nothing to do");
|
Check warning on line 221 in src/dir_marks.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/dir_marks.rs:221:5
|
221 | println!("{}", SHELL_FN_GG);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
221 - println!("{}", SHELL_FN_GG);
221 + println!("{SHELL_FN_GG}");
|
Check warning on line 106 in src/dir_marks.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/dir_marks.rs:106:63
|
106 | std::fs::remove_file(JUMP_TARGET_DATA_PATH).map_err(|e| format!("failed to remove {}", e))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
106 - std::fs::remove_file(JUMP_TARGET_DATA_PATH).map_err(|e| format!("failed to remove {}", e))?;
106 + std::fs::remove_file(JUMP_TARGET_DATA_PATH).map_err(|e| format!("failed to remove {e}"))?;
|
Check warning on line 94 in src/dir_marks.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/dir_marks.rs:94:7
|
94 | println!("`{}` not found", kwd);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
94 - println!("`{}` not found", kwd);
94 + println!("`{kwd}` not found");
|
Check warning on line 85 in src/dir_marks.rs
github-actions / clippy
variables can be used directly in the `format!` string
warning: variables can be used directly in the `format!` string
--> src/dir_marks.rs:85:5
|
85 | println!("added `{}`\t{}\t{}", kwd, path, description)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
85 - println!("added `{}`\t{}\t{}", kwd, path, description)
85 + println!("added `{kwd}`\t{path}\t{description}")
|