From f8af528ad9bfc74707f800ab1c0b3fcb1aa98a95 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Mon, 18 Jul 2022 21:07:47 +0200 Subject: [PATCH] Fix a few other warnings --- src/foundation/urls/mod.rs | 10 +++++----- src/webview/mod.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/foundation/urls/mod.rs b/src/foundation/urls/mod.rs index ca2474ee..8f610aac 100644 --- a/src/foundation/urls/mod.rs +++ b/src/foundation/urls/mod.rs @@ -90,7 +90,7 @@ impl<'a> NSURL<'a> { pub fn bookmark_data( &self, options: &[NSURLBookmarkCreationOption], - resource_value_keys: &[NSURLResourceKey], + _resource_value_keys: &[NSURLResourceKey], relative_to_url: Option ) -> Result> { let mut opts: NSUInteger = 0; @@ -133,10 +133,10 @@ impl<'a> NSURL<'a> { /// Converts bookmark data into a URL. pub fn from_bookmark_data( - data: NSData, - options: &[NSURLBookmarkResolutionOption], - relative_to_url: Option, - data_is_stale: bool + _data: NSData, + _options: &[NSURLBookmarkResolutionOption], + _relative_to_url: Option, + _data_is_stale: bool ) -> Result> { Err("LOL".into()) } diff --git a/src/webview/mod.rs b/src/webview/mod.rs index e09c1ad5..c2a43201 100644 --- a/src/webview/mod.rs +++ b/src/webview/mod.rs @@ -242,7 +242,7 @@ where let view = allocate_webview(config, Some(&objc_delegate)); let mut view = WebView::init(view); - &delegate.did_load(view.clone_as_handle()); + delegate.did_load(view.clone_as_handle()); view.delegate = Some(delegate); view }