Skip to content

Commit

Permalink
Remove a nonsense impl of DetectChangesMut::detect_changes (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-gio authored Feb 16, 2023
1 parent 29e8f34 commit d568233
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bevy-trait-query-impl = { path = "proc-macro", version = "0.1.0" }

[dependencies.bevy]
git = "https://github.com/bevyengine/bevy"
rev = "f7fbfaf9c72035e98c6b6cec0c7d26ff9f5b1c82"
rev = "81307290e25edcb986bad7826ed6b832eb57bd8b"
default-features = false

[dev-dependencies]
Expand Down
8 changes: 0 additions & 8 deletions src/change_detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ impl<T: ?Sized> DetectChangesMut for Mut<'_, T> {
fn bypass_change_detection(&mut self) -> &mut Self::Inner {
self.value
}

fn set_if_neq<Target>(&mut self, _: Target)
where
Self: Deref<Target = Target> + DerefMut<Target = Target>,
Target: PartialEq,
{
unreachable!()
}
}

impl<'a, T: ?Sized> Mut<'a, T> {
Expand Down

0 comments on commit d568233

Please sign in to comment.