Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 9628ae7

Browse files
committed
Fix patterns_in_fns_without_body warning
This is a new future incompatibility warning, "patterns aren't allowed in methods without bodies".
1 parent a9fede9 commit 9628ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ pub trait Decoder {
620620
/// and may (but are not required to) return an error if these are
621621
/// inconsistent.
622622
fn read_enum_struct_variant_field<T, F>(&mut self,
623-
&f_name: &str,
623+
f_name: &str,
624624
f_idx: usize,
625625
f: F)
626626
-> Result<T, Self::Error>

0 commit comments

Comments
 (0)