Skip to content

Commit

Permalink
resolve E0599 when derived without importing trait into current scope (
Browse files Browse the repository at this point in the history
  • Loading branch information
colstrom authored Sep 30, 2024
1 parent 5284e85 commit 25231c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[workspace]
resolver = "2"
members = [
"struct-patch",
"struct-patch-derive",
]

[workspace.package]
authors = ["Antonio Yang <[email protected]>"]
version = "0.8.4"
version = "0.8.5"
edition = "2021"
categories = ["development-tools"]
keywords = ["struct", "patch", "macro", "derive", "overlay"]
Expand Down
2 changes: 1 addition & 1 deletion struct-patch-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl Patch {
type Output = Self;

fn shl(mut self, rhs: #name #generics) -> Self {
self.apply(rhs);
struct_patch::traits::Patch::apply(&mut self, rhs);
self
}
}
Expand Down
2 changes: 1 addition & 1 deletion struct-patch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license.workspace = true
readme.workspace = true

[dependencies]
struct-patch-derive = { version = "=0.8.4", path = "../struct-patch-derive" }
struct-patch-derive = { version = "=0.8.5", path = "../struct-patch-derive" }

[dev-dependencies]
serde_json = "1.0"
Expand Down

0 comments on commit 25231c2

Please sign in to comment.