Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbfbb38a

Browse files
fix: escaped comment interpolation in error message (#18)
1 parenta6710b9 commitbfbb38a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib.rs‎

Lines changed: 3 additions & 3 deletions
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
}elseif current_table !="features"{
345345
returnErr(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)

[8]ページ先頭

©2009-2025 Movatter.jp