Skip to content

Commit

Permalink
Ignore clippy zero_prefixed_literal false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 13, 2020
1 parent ffc06b2 commit 09f370b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/json/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ fn to_string_impl(value: &dyn Serialize) -> String {
}
}

// Clippy false positive: https://github.com/rust-lang/rust-clippy/issues/5169
#[allow(clippy::zero_prefixed_literal)]
fn escape_str(value: &str, out: &mut String) {
out.push('"');

Expand Down

0 comments on commit 09f370b

Please sign in to comment.