Fix Clippy Warnings (#1776)

Fix Warnings
This commit is contained in:
Carter 2023-11-14 14:48:17 -06:00 committed by GitHub
parent 5b73c5b9f2
commit 36cd5bf365
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -73,7 +73,8 @@ fn reload_webview_inner(webview: PlatformWebview) {
.controller()
.CoreWebView2()
.expect("Unable to get handle on inner webview")
.Reload();
.Reload()
.expect("Unable to reload webview");
}
}
@ -270,7 +271,7 @@ async fn main() -> tauri::Result<()> {
.on_menu_event(menu::handle_menu_event)
.on_window_event(|event| {
if let WindowEvent::Resized(_) = event.event() {
let (state, command) = if event
let (_state, command) = if event
.window()
.is_fullscreen()
.expect("Can't get fullscreen state")
@ -288,7 +289,7 @@ async fn main() -> tauri::Result<()> {
#[cfg(target_os = "macos")]
{
let nswindow = event.window().ns_window().unwrap();
unsafe { sd_desktop_macos::set_titlebar_style(&nswindow, state) };
unsafe { sd_desktop_macos::set_titlebar_style(&nswindow, _state) };
}
}
})

View file

@ -8,6 +8,7 @@
#![warn(clippy::suspicious)]
#![warn(clippy::nursery)]
#![warn(clippy::complexity)]
#![allow(clippy::missing_const_for_fn)]
#![allow(clippy::missing_panics_doc)]
#![allow(clippy::missing_errors_doc)]
#![allow(clippy::module_name_repetitions)]