clippy nightly fix: single char pattern
This commit is contained in:
parent
33029787e0
commit
89ab03973f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue