Clippy fixes

This commit is contained in:
mdecimus
2025-01-11 11:43:45 +01:00
parent dc19f20285
commit 3612d5fc5d
67 changed files with 131 additions and 140 deletions

View File

@@ -411,11 +411,11 @@ impl<T> SetRequest<T> {
}
pub fn has_updates(&self) -> bool {
self.update.as_ref().map_or(false, |objs| !objs.is_empty())
self.update.as_ref().is_some_and(|objs| !objs.is_empty())
}
pub fn has_creates(&self) -> bool {
self.create.as_ref().map_or(false, |objs| !objs.is_empty())
self.create.as_ref().is_some_and(|objs| !objs.is_empty())
}
pub fn unwrap_create(&mut self) -> VecMap<String, Object<SetValue>> {