clippy nightly fix: single char pattern

This commit is contained in:
glyph 2022-03-01 11:33:36 +02:00 committed by adria0.eth
parent 33029787e0
commit 89ab03973f
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ pub fn stringify_json(v: &Value) -> Result<String> {
Value::Number(value) => {
let mut as_str = value.to_string();
if as_str.contains('e') && !as_str.contains("e-") && !as_str.contains("e+") {
as_str = as_str.replace("e", "e+")
as_str = as_str.replace('e', "e+")
}
buffer.push_str(&as_str);
}