Fix clippy lints (Rust 1.92) (#5102)
* Fix clippy lints (Rust 1.92) * cargo fmt Signed-off-by: Nico Burns <nico@nicoburns.com> --------- Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
1 parent
96231defd1
commit
9484cda546
2 files changed
+4
-2
No files matched your search
@@ -38,6 +38,8 @@ impl NetProvider<Resource> for DioxusNativeNetProvider {
|
||||
handler: blitz_traits::net::BoxedHandler<Resource>,
|
||||
) {
|
||||
if request.url.scheme() == "dioxus" {
|
||||
#[allow(clippy::single_match)]
|
||||
// cfg'd code has multiple branches in some configurations
|
||||
match dioxus_asset_resolver::native::serve_asset(request.url.path()) {
|
||||
Ok(res) => {
|
||||
#[cfg(feature = "tracing")]
|
||||
|
||||
@@ -54,13 +54,13 @@ pub fn wasm_split(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||
syn::FnArg::Typed(pat_type) => {
|
||||
let param_ident = format_ident!("__wasm_split_arg_{i}");
|
||||
args.push(param_ident.clone());
|
||||
pat_type.pat = Box::new(syn::Pat::Ident(syn::PatIdent {
|
||||
*pat_type.pat = syn::Pat::Ident(syn::PatIdent {
|
||||
attrs: vec![],
|
||||
by_ref: None,
|
||||
mutability: None,
|
||||
ident: param_ident,
|
||||
subpat: None,
|
||||
}));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user