Skip to content

Commit 1d594d6

Browse files
unhappychoiceclaude
andcommitted
style: fix fmt and clippy warnings
- Run cargo fmt - Add #[allow(clippy::too_many_arguments)] to UI::new 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 63092ce commit 1d594d6

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎src/animation.rs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,7 @@ impl AnimationEngine {
486486
}
487487
// Show "Open File..." dialog and type the file path
488488
self.steps.push(AnimationStep::OpenFileDialogStart);
489-
self.steps.push(AnimationStep::Pause {
490-
multiplier: 5.0,
491-
});
489+
self.steps.push(AnimationStep::Pause { multiplier: 5.0 });
492490

493491
// Type each character of the file path
494492
for ch in change.path.chars() {

‎src/main.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ mod theme;
77
mod ui;
88
mod widgets;
99

10-
use anyhow::{Context, Result};
1110
use animation::SpeedRule;
11+
use anyhow::{Context, Result};
1212
use clap::{Parser, Subcommand, ValueEnum};
1313
use config::Config;
1414
use git::GitRepository;

‎src/ui.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pub struct UI<'a> {
5252

5353
impl<'a> UI<'a> {
5454
/// Creates a new UI instance with the specified configuration.
55+
#[allow(clippy::too_many_arguments)]
5556
pub fn new(
5657
speed_ms: u64,
5758
repo: Option<&'a GitRepository>,

0 commit comments

Comments
 (0)