From: Ben Pfaff Date: Sun, 13 Apr 2025 18:11:05 +0000 (-0700) Subject: clippy X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92d776342bc0277ee2820c520ffdffebdeea751d;p=pspp clippy --- diff --git a/rust/pspp/src/output/pivot/mod.rs b/rust/pspp/src/output/pivot/mod.rs index 2e972dc104..cd6e28f80c 100644 --- a/rust/pspp/src/output/pivot/mod.rs +++ b/rust/pspp/src/output/pivot/mod.rs @@ -522,7 +522,7 @@ impl Category { Category::Group(group) => group.nth_leaf(index), Category::Leaf(leaf) => { if index == 0 { - Some(&leaf) + Some(leaf) } else { None } @@ -535,10 +535,7 @@ impl Category { Category::Group(group) => group.leaf_path(index, groups), Category::Leaf(leaf) => { if index == 0 { - Some(Path { - groups, - leaf: &leaf, - }) + Some(Path { groups, leaf }) } else { None }