Skip to content

Commit bfbb38a

Browse files
fix: escaped comment interpolation in error message (#18)
1 parent a6710b9 commit bfbb38a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ fn process_toml(cargo_toml: &str, args: &Args) -> Result<String, String> {
343343
}
344344
} else if current_table != "features" {
345345
return Err(format!(
346-
"Comment cannot be associated with a feature:{}",
347-
current_comment
346+
r#"Comment cannot be associated with a feature: "{}""#,
347+
current_comment.trim()
348348
));
349349
}
350350
features.push((
@@ -693,7 +693,7 @@ bar = []
693693
## hallo
694694
foo = []
695695
"#,
696-
"Comment cannot be associated with a feature: hallo",
696+
"Comment cannot be associated with a feature: \"hallo\"",
697697
);
698698
}
699699

0 commit comments

Comments
 (0)