Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit eef9299

Browse files
authored
Merge pull request #796 from alexheretic/clippy-pref-exp
Improve clippy_preference serde expecting message
2 parents da8edac + 915daa5 commit eef9299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ where
334334
{
335335
type Value = T;
336336
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
337-
formatter.write_str(r#"on", "opt-in" or "off""#)
337+
formatter.write_str("`on`, `opt-in` or `off`")
338338
}
339339
fn visit_str<E: serde::de::Error>(self, value: &str) -> Result<T, E> {
340340
FromStr::from_str(value)

0 commit comments

Comments
 (0)