Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Fix the clippy formatting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbuys committed Oct 30, 2020
1 parent 24dc184 commit 7b44a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de.rs
Expand Up @@ -560,7 +560,7 @@ where
// if we are left with leading zero(s) followed by numeric characters
// this is in fact a string according to the YAML 1.2 spec
// https://yaml.org/spec/1.2/spec.html#id2761292
if v.len() > 1 && v.starts_with("0") && v.chars().all(char::is_numeric) {
if v.len() > 1 && v.starts_with('0') && v.chars().all(char::is_numeric) {
return visitor.visit_str(v);
}
if let Ok(n) = v.parse() {
Expand Down

0 comments on commit 7b44a8e

Please sign in to comment.