diff --git a/src/update.rs b/src/update.rs index 995b72f..b5676b8 100644 --- a/src/update.rs +++ b/src/update.rs @@ -157,6 +157,12 @@ pub unsafe trait Update { unsafe fn maybe_update(old_pointer: *mut Self, new_value: Self) -> bool; } +unsafe impl Update for std::convert::Infallible { + unsafe fn maybe_update(_old_pointer: *mut Self, new_value: Self) -> bool { + match new_value {} + } +} + unsafe impl Update for Vec where T: Update,