Fix warnings in cargo doc output

This commit is contained in:
Tobias Hunger 2023-05-04 18:58:03 +02:00
parent edc60c8ece
commit 1eb8d2875b
No known key found for this signature in database
GPG key ID: 60874021D2F23F91
2 changed files with 3 additions and 3 deletions

View file

@ -116,7 +116,7 @@ fn resolve_alias(
let nr = nr.unwrap();
let purity = nr.element().borrow().lookup_property(nr.name()).declared_pure;
let mut elem = elem.borrow_mut();
let mut decl = elem.property_declarations.get_mut(prop).unwrap();
let decl = elem.property_declarations.get_mut(prop).unwrap();
if decl.pure.unwrap_or(false) != purity.unwrap_or(false) {
diag.push_error(
format!("Purity of callbacks '{prop}' and '{nr:?}' doesn't match"),

View file

@ -223,7 +223,7 @@ impl<T: Clone> SharedVector<T> {
}
self.detach(new_len);
// Safety: detach ensured that the array is not shared.
let mut inner = unsafe { self.inner.as_mut() };
let inner = unsafe { self.inner.as_mut() };
if inner.header.size >= new_len {
self.shrink(new_len);
@ -247,7 +247,7 @@ impl<T: Clone> SharedVector<T> {
unsafe { self.inner.as_ref().header.refcount.load(atomic::Ordering::Relaxed) } == 1
);
// Safety: caller (and above debug_assert) must ensure that the array is not shared.
let mut inner = unsafe { self.inner.as_mut() };
let inner = unsafe { self.inner.as_mut() };
while inner.header.size > new_len {
inner.header.size -= 1;