mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Fix warnings in cargo doc output
This commit is contained in:
parent
edc60c8ece
commit
1eb8d2875b
2 changed files with 3 additions and 3 deletions
|
@ -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"),
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue