diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-20 16:07:07 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-20 16:07:30 +0900 |
| commit | c09cd630afb4bb0ca10e926f93bf706ca828ae85 (patch) | |
| tree | 2147230e858c672cbea6e8dc7295763d98fd48d7 /crates/shirabe/src/util/git.rs | |
| parent | 1b38bdb5a1de127ca8040f5a132d08c73ccb3c67 (diff) | |
| download | php-shirabe-c09cd630afb4bb0ca10e926f93bf706ca828ae85.tar.gz php-shirabe-c09cd630afb4bb0ca10e926f93bf706ca828ae85.tar.zst php-shirabe-c09cd630afb4bb0ca10e926f93bf706ca828ae85.zip | |
refactor(clippy): resolve idiomatic lint warnings
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/util/git.rs')
| -rw-r--r-- | crates/shirabe/src/util/git.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/shirabe/src/util/git.rs b/crates/shirabe/src/util/git.rs index 1467a29..5923917 100644 --- a/crates/shirabe/src/util/git.rs +++ b/crates/shirabe/src/util/git.rs @@ -174,8 +174,7 @@ impl Git { let mut outputs: Vec<String> = vec![]; let mut status: i64 = 0; - let mut counter: i64 = 0; - for callable in &command_callables { + for (counter, callable) in command_callables.iter().enumerate() { let cmd = callable(url_arg); *last_cmd = PhpMixed::List( cmd.iter() @@ -195,7 +194,6 @@ impl Git { if status != 0 { break; } - counter += 1; } if collect_outputs && let Some(out) = command_output { |
