Skip to content

Commit 5e66494

Browse files
committed
use Debug impl for String in Error
1 parent 69b75c7 commit 5e66494

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust/stackable-cockpit/src/platform/manifests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use crate::{
2222
#[derive(Debug, Snafu)]
2323
pub enum Error {
2424
/// This error indicates that parsing a string into a path or URL failed.
25-
#[snafu(display("failed to parse '{path_or_url}' as path/url"))]
25+
#[snafu(display("failed to parse {path_or_url:?} as path/url"))]
2626
ParsePathOrUrl {
2727
source: PathOrUrlParseError,
2828
path_or_url: String,

rust/stackable-cockpit/src/platform/release/spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub enum Error {
2929
OperatorSpecParse { source: operator::SpecParseError },
3030

3131
/// This error indicates that parsing a string into a path or URL failed.
32-
#[snafu(display("failed to parse '{path_or_url}' as path/url"))]
32+
#[snafu(display("failed to parse {path_or_url:?} as path/url"))]
3333
ParsePathOrUrl {
3434
source: PathOrUrlParseError,
3535
path_or_url: String,

0 commit comments

Comments
 (0)