diff --git a/databroker-cli/src/kuksa_cli.rs b/databroker-cli/src/kuksa_cli.rs index 5dd91099..1b86f054 100644 --- a/databroker-cli/src/kuksa_cli.rs +++ b/databroker-cli/src/kuksa_cli.rs @@ -312,7 +312,7 @@ pub async fn kuksa_main(_cli: Cli) -> Result<(), Box> { } } Err(err) => { - cli::print_error(cmd, &format!("Malformed token: {err}"))? + cli::print_error(cmd, format!("Malformed token: {err}"))? } } } @@ -350,12 +350,12 @@ pub async fn kuksa_main(_cli: Cli) -> Result<(), Box> { } } Err(err) => { - cli::print_error(cmd, &format!("Malformed token: {err}"))? + cli::print_error(cmd, format!("Malformed token: {err}"))? } }, Err(err) => cli::print_error( cmd, - &format!( + format!( "Failed to open token file \"{token_filename}\": {err}" ), )?, diff --git a/databroker-cli/src/sdv_cli.rs b/databroker-cli/src/sdv_cli.rs index e1913e29..0bf91b0d 100644 --- a/databroker-cli/src/sdv_cli.rs +++ b/databroker-cli/src/sdv_cli.rs @@ -256,7 +256,7 @@ pub async fn sdv_main(_cli: Cli) -> Result<(), Box> { } } Err(err) => { - cli::print_error(cmd, &format!("Malformed token: {err}"))? + cli::print_error(cmd, format!("Malformed token: {err}"))? } } } @@ -295,12 +295,12 @@ pub async fn sdv_main(_cli: Cli) -> Result<(), Box> { } } Err(err) => { - cli::print_error(cmd, &format!("Malformed token: {err}"))? + cli::print_error(cmd, format!("Malformed token: {err}"))? } }, Err(err) => cli::print_error( cmd, - &format!( + format!( "Failed to open token file \"{token_filename}\": {err}" ), )?,