Skip to content

Commit

Permalink
fix(clipcatctl): add missing separator in no-id print_list (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
douo authored Jan 22, 2025
1 parent ade1492 commit e3c6c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clipcatctl/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ async fn print_list(client: &Client, preview_length: usize, no_id: bool) -> Resu
let metadata_list = client.list(preview_length).await?;
for metadata in metadata_list {
let ClipEntryMetadata { id, preview, .. } = metadata;
let output = if no_id { preview } else { format!("{id:016x}: {preview}\n") };
let output = if no_id { format!("{preview}\n") } else { format!("{id:016x}: {preview}\n") };
tokio::io::stdout().write_all(output.as_bytes()).await.context(error::WriteStdoutSnafu)?;
}
Ok(())
Expand Down

0 comments on commit e3c6c6f

Please sign in to comment.