Skip to content

Commit 12c740c

Browse files
committed
🐛 Fix missing eq impl
1 parent eff170e commit 12c740c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Cargo.lock

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ proc-macro = true
1616

1717
[dependencies]
1818
quote = "1.0"
19-
syn = { version = "2.0", features = ["full"] }
19+
syn = { version = "2.0", features = ["full", "extra-traits"] }
2020
proc-macro2 = "1.0"
2121

2222
[dev-dependencies]

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ impl Parse for Params {
822822
};
823823
}
824824

825-
if (ret.repr != ret.ty) && (!ret.from.is_some() || !ret.into.is_some()) {
825+
if ret.repr != ret.ty && (ret.from.is_none() || ret.into.is_none()) {
826826
return Err(s_err(
827827
input.span(),
828828
"`repr` requires both `from` and `into`",

0 commit comments

Comments
 (0)