summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-08-22 15:38:19 +0200
committerGitHub <noreply@github.com>2019-08-22 15:38:19 +0200
commitc81037e95e498bc64e1e7acb258f9b3309c7bc39 (patch)
treeef219575d4d0f0c22d59b872a827529e6da46a9b
parent24288b1611b23dcf8191f23dceb7ff70484f1cf2 (diff)
parent1f753b228b9713047f20f43c56f8417c3991dfa6 (diff)
Merge pull request #49 from lzutao/bump-deps
Bump dependencies
-rw-r--r--toml-query_derive/Cargo.toml6
-rw-r--r--toml-query_derive/src/lib.rs4
2 files changed, 5 insertions, 5 deletions
diff --git a/toml-query_derive/Cargo.toml b/toml-query_derive/Cargo.toml
index 87fdcf7..58b85f9 100644
--- a/toml-query_derive/Cargo.toml
+++ b/toml-query_derive/Cargo.toml
@@ -9,9 +9,9 @@ license = "MPL-2.0"
proc-macro = true
[dependencies]
-syn = "0.15"
-quote = "0.6"
-darling = "0.8"
+syn = "1"
+quote = "1"
+darling = "0.10"
[dev-dependencies]
serde = "1"
diff --git a/toml-query_derive/src/lib.rs b/toml-query_derive/src/lib.rs
index c94256b..5484d69 100644
--- a/toml-query_derive/src/lib.rs
+++ b/toml-query_derive/src/lib.rs
@@ -26,8 +26,8 @@ pub fn derive_partial(tokens: TokenStream) -> TokenStream {
match option {
// Match '#[ident = lit]' attributes. Match guard makes it '#[prefix = lit]'
Meta::NameValue(MetaNameValue {
- ref ident, ref lit, ..
- }) if ident == "location" => {
+ ref path, ref lit, ..
+ }) if path.is_ident("location") => {
if let Lit::Str(lit) = lit {
location = Some(lit.value());
}