diff --git a/cli/src/commands/metadata.rs b/cli/src/commands/metadata.rs index 43c90794cb..98f5447243 100644 --- a/cli/src/commands/metadata.rs +++ b/cli/src/commands/metadata.rs @@ -76,7 +76,7 @@ pub async fn run(opts: Opts, output: &mut impl Write) -> color_eyre::Result<()> Ok(()) } "hex" => { - let hex_data = format!("0x{:?}", hex::encode(metadata.encode())); + let hex_data = format!("0x{}", hex::encode(metadata.encode())); write!(output, "{hex_data}")?; Ok(()) }