Merge branch 'v0.6.x'
This commit is contained in:
commit
d1e39db61e
@ -17,5 +17,5 @@ num-impls = ["num-bigint", "num-complex", "num-rational"]
|
||||
num-rational = ["num/rational"]
|
||||
|
||||
[dependencies]
|
||||
clippy = { version = "^0.0.35", optional = true }
|
||||
clippy = { version = "^0.0.36", optional = true }
|
||||
num = { version = "^0.1.27", default-features = false }
|
||||
|
@ -154,7 +154,9 @@ impl<
|
||||
fn visit_str<E>(&mut self, v: &str) -> Result<T, E>
|
||||
where E: Error,
|
||||
{
|
||||
str::FromStr::from_str(v.trim()).or(Err(Error::type_mismatch(Type::Str)))
|
||||
str::FromStr::from_str(v.trim()).or_else(|_| {
|
||||
Err(Error::type_mismatch(Type::Str))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ syntex = { version = "^0.26.0", optional = true }
|
||||
|
||||
[dependencies]
|
||||
aster = { version = "^0.10.0", default-features = false }
|
||||
clippy = { version = "^0.0.35", optional = true }
|
||||
clippy = { version = "^0.0.36", optional = true }
|
||||
quasi = { version = "^0.4.0", default-features = false }
|
||||
quasi_macros = { version = "^0.4.0", optional = true }
|
||||
syntex = { version = "^0.26.0", optional = true }
|
||||
|
@ -13,7 +13,7 @@ name = "serde_macros"
|
||||
plugin = true
|
||||
|
||||
[dependencies]
|
||||
clippy = "^0.0.35"
|
||||
clippy = "^0.0.36"
|
||||
serde_codegen = { version = "*", path = "../serde_codegen", default-features = false, features = ["nightly"] }
|
||||
|
||||
[dev-dependencies]
|
||||
|
@ -25,7 +25,7 @@ serde = { version = "*", path = "../serde", features = ["num-impls"] }
|
||||
syntex = "^0.26.0"
|
||||
|
||||
[dependencies]
|
||||
clippy = { version = "^0.0.35", optional = true }
|
||||
clippy = { version = "^0.0.36", optional = true }
|
||||
|
||||
[[test]]
|
||||
name = "test"
|
||||
|
Loading…
Reference in New Issue
Block a user