Skip to content

Commit

Permalink
Fix a few other warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jul 20, 2022
1 parent f1261bf commit 7e84239
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/foundation/urls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<NSURL>
) -> Result<NSData, Box<dyn Error>> {
let mut opts: NSUInteger = 0;
Expand Down Expand Up @@ -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<NSURL>,
data_is_stale: bool
_data: NSData,
_options: &[NSURLBookmarkResolutionOption],
_relative_to_url: Option<NSURL>,
_data_is_stale: bool
) -> Result<Self, Box<dyn Error>> {
Err("LOL".into())
}
Expand Down
2 changes: 1 addition & 1 deletion src/webview/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7e84239

Please sign in to comment.