mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-24 04:09:36 +00:00
add impl Update
for std::convert::Infallible
This commit is contained in:
parent
5eed7e9078
commit
8662fc6694
1 changed files with 6 additions and 0 deletions
|
@ -157,6 +157,12 @@ pub unsafe trait Update {
|
||||||
unsafe fn maybe_update(old_pointer: *mut Self, new_value: Self) -> bool;
|
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<T> Update for Vec<T>
|
unsafe impl<T> Update for Vec<T>
|
||||||
where
|
where
|
||||||
T: Update,
|
T: Update,
|
||||||
|
|
Loading…
Reference in a new issue