Skip to content

Commit f5ed346

Browse files
committed
Fix clippy warnings
1 parent 50aa730 commit f5ed346

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

derive/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ where
562562
match tree {
563563
UseTree::Name(name) => result.push(f(&name.ident, false)?),
564564
UseTree::Rename(rename) => result.push(f(&rename.rename, false)?),
565-
UseTree::Path(path) => iter_use_tree_idents(&*path.tree, result, f)?,
565+
UseTree::Path(path) => iter_use_tree_idents(&path.tree, result, f)?,
566566
UseTree::Group(syn::UseGroup { items, .. }) => {
567567
for subtree in items {
568568
iter_use_tree_idents(subtree, result, f)?;

vm/src/stdlib/winreg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ mod winreg {
304304
let nul_pos = wide_slice
305305
.iter()
306306
.position(|w| *w == 0)
307-
.unwrap_or_else(|| wide_slice.len());
307+
.unwrap_or(wide_slice.len());
308308
let s = String::from_utf16_lossy(&wide_slice[..nul_pos]);
309309
Ok(vm.ctx.new_str(s).into())
310310
}

0 commit comments

Comments
 (0)