Skip to content

Commit b0bb5b7

Browse files
Fix cargo fmt formatting
1 parent 6dd7621 commit b0bb5b7

3 files changed

Lines changed: 26 additions & 10 deletions

File tree

src/errors.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ impl CliError {
7575
Self::RateLimited => "Wait 30-60 seconds and retry",
7676
Self::Config(_) => "Check `suno config check` for configuration issues",
7777
Self::NotFound(_) => "Verify the ID exists with `suno list` or `suno search`",
78-
Self::Download(_) => "Check that the clip has finished generating with `suno status <id>`",
78+
Self::Download(_) => {
79+
"Check that the clip has finished generating with `suno status <id>`"
80+
}
7981
Self::GenerationFailed(_) => "Check `suno credits` for remaining balance",
8082
Self::Api { .. } | Self::Http(_) => "Check your network connection and retry",
8183
Self::Io(_) => "Check file permissions and disk space",

src/main.rs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,15 @@ async fn run() -> Result<(), CliError> {
371371
let clips = c
372372
.cover(&args.clip_id, args.model.to_api_key(), args.tags.as_deref())
373373
.await?;
374-
handle_generation(&c, clips, args.wait, args.download.as_deref(), &fmt, cli.quiet)
375-
.await?;
374+
handle_generation(
375+
&c,
376+
clips,
377+
args.wait,
378+
args.download.as_deref(),
379+
&fmt,
380+
cli.quiet,
381+
)
382+
.await?;
376383
}
377384

378385
Commands::Remaster(args) => {
@@ -381,8 +388,15 @@ async fn run() -> Result<(), CliError> {
381388
}
382389
let c = client().await?;
383390
let clips = c.remaster(&args.clip_id, args.model.to_api_key()).await?;
384-
handle_generation(&c, clips, args.wait, args.download.as_deref(), &fmt, cli.quiet)
385-
.await?;
391+
handle_generation(
392+
&c,
393+
clips,
394+
args.wait,
395+
args.download.as_deref(),
396+
&fmt,
397+
cli.quiet,
398+
)
399+
.await?;
386400
}
387401

388402
Commands::Stems(args) => {

src/output/table.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ pub fn clip_detail(clip: &Clip) {
113113
.map(|d| format!("{:.1}s", d))
114114
.unwrap_or_else(|| "-".into()),
115115
]);
116-
table.add_row(vec![
117-
"Tags",
118-
clip.metadata.tags.as_deref().unwrap_or("-"),
119-
]);
116+
table.add_row(vec!["Tags", clip.metadata.tags.as_deref().unwrap_or("-")]);
120117
table.add_row(vec![
121118
"BPM",
122119
&clip
@@ -128,7 +125,10 @@ pub fn clip_detail(clip: &Clip) {
128125
table.add_row(vec!["Plays", &clip.play_count.to_string()]);
129126
table.add_row(vec!["Upvotes", &clip.upvote_count.to_string()]);
130127
table.add_row(vec!["Has Stems", &clip.metadata.has_stem.to_string()]);
131-
table.add_row(vec!["Instrumental", &clip.metadata.make_instrumental.to_string()]);
128+
table.add_row(vec![
129+
"Instrumental",
130+
&clip.metadata.make_instrumental.to_string(),
131+
]);
132132

133133
if let Some(ref url) = clip.audio_url {
134134
table.add_row(vec!["Audio URL", url]);

0 commit comments

Comments
 (0)