Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Sep 6, 2023
1 parent d934906 commit 7359295
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion core/tauri/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1577,7 +1577,8 @@ impl<R: Runtime> Builder<R> {
}
}

pub struct UriSchemeResponse(pub(crate) Box<dyn FnOnce(HttpResponse<Cow<'static, [u8]>>) + Send>);
pub(crate) type UriSchemeResponder = Box<dyn FnOnce(HttpResponse<Cow<'static, [u8]>>) + Send>;
pub struct UriSchemeResponse(pub(crate) UriSchemeResponder);

impl UriSchemeResponse {
/// Resolves the request with the given response.
Expand Down
4 changes: 2 additions & 2 deletions core/tauri/src/protocol/tauri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn get<R: Runtime>(
request,
&manager,
&window_origin,
web_resource_request_handler.as_ref(),
web_resource_request_handler.as_deref(),
#[cfg(all(dev, mobile))]
(&url, &response_cache),
) {
Expand All @@ -71,7 +71,7 @@ fn get_response<R: Runtime>(
request: Request<Vec<u8>>,
manager: &WindowManager<R>,

Check warning on line 72 in core/tauri/src/protocol/tauri.rs

View workflow job for this annotation

GitHub Actions / test (aarch64-apple-ios, macos-latest, 1.65.0, false, build, --features compression, all)

unused variable: `manager`

Check warning on line 72 in core/tauri/src/protocol/tauri.rs

View workflow job for this annotation

GitHub Actions / test (aarch64-apple-ios, macos-latest, 1.65.0, false, build, --no-default-features, no-default)

unused variable: `manager`

Check warning on line 72 in core/tauri/src/protocol/tauri.rs

View workflow job for this annotation

GitHub Actions / test (aarch64-linux-android, ubuntu-latest, 1.65.0, true, build, --no-default-features, no-default)

unused variable: `manager`

Check warning on line 72 in core/tauri/src/protocol/tauri.rs

View workflow job for this annotation

GitHub Actions / test (aarch64-linux-android, ubuntu-latest, 1.65.0, true, build, --features compression, all)

unused variable: `manager`
window_origin: &str,
web_resource_request_handler: Option<&Box<WebResourceRequestHandler>>,
web_resource_request_handler: Option<&WebResourceRequestHandler>,
#[cfg(all(dev, mobile))] (url, response_cache): (
&str,
&Arc<Mutex<HashMap<String, CachedResponse>>>,
Expand Down
2 changes: 1 addition & 1 deletion examples/api/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7359295

Please sign in to comment.