Skip to content

Commit 878ff9a

Browse files
committed
Bump syn and siphasher
1 parent 6f72eb1 commit 878ff9a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ keywords = ["incremental", "memoization", "tracked", "constraints"]
1212

1313
[dependencies]
1414
comemo-macros = { version = "0.3", path = "macros" }
15-
siphasher = "0.3"
15+
siphasher = "1"

macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ proc-macro = true
1414
[dependencies]
1515
proc-macro2 = "1"
1616
quote = "1"
17-
syn = { version = "1", features = ["full"] }
17+
syn = { version = "2", features = ["full"] }

macros/src/track.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ enum Kind {
6969

7070
/// Preprocess and validate a method in an impl block.
7171
fn prepare_impl_method(item: &syn::ImplItem) -> Result<Method> {
72-
let syn::ImplItem::Method(method) = item else {
72+
let syn::ImplItem::Fn(method) = item else {
7373
bail!(item, "only methods can be tracked");
7474
};
7575

@@ -78,7 +78,7 @@ fn prepare_impl_method(item: &syn::ImplItem) -> Result<Method> {
7878

7979
/// Preprocess and validate a method in a trait.
8080
fn prepare_trait_method(item: &syn::TraitItem) -> Result<Method> {
81-
let syn::TraitItem::Method(method) = item else {
81+
let syn::TraitItem::Fn(method) = item else {
8282
bail!(item, "only methods can be tracked");
8383
};
8484

0 commit comments

Comments
 (0)