Make clippy happy

This commit is contained in:
Jonathan Kelley committed 2024-01-05 12:54:39 -08:00
1 parent cbed09b95c
commit bc857bf339
9 files changed
+20 -14

No files matched your search

+4 -3
View File
@@ -102,13 +102,14 @@ impl DesktopService {
/// Send a list of mutations to the webview
pub(crate) fn send_edits(&self, edits: Mutations) {
crate::edits::apply_edits(
if let Some(bytes) = crate::edits::apply_edits(
edits,
&mut self.channel.borrow_mut(),
&mut self.templates.borrow_mut(),
&self.max_template_count,
)
.map(|bytes| self.edit_queue.add_edits(bytes));
) {
self.edit_queue.add_edits(bytes)
}
}
/// Create a new window using the props and window builder