about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-10-12T17·34+0200
committerflokli <flokli@flokli.de>2023-10-12T20·46+0000
commit3dd5ba042be0a36b0f94aba34414bb20a7e5ed61 (patch)
treef521b79713d2ae5d33585b3fc528e60a28d1e38d /tvix
parent04c1f151f381122cd4a800ba52ebcbc6bc70acf2 (diff)
refactor(tvix/store): clippy lint r/6791
Change-Id: I03aa5c6cb0167ff6cb7312d81d1e43116fcb6d70
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9710
Reviewed-by: edef <edef@edef.eu>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/store/src/listener/mod.rs2
-rw-r--r--tvix/store/src/nar/renderer.rs2
-rw-r--r--tvix/store/src/proto/mod.rs2
-rw-r--r--tvix/store/src/tests/fixtures.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/tvix/store/src/listener/mod.rs b/tvix/store/src/listener/mod.rs
index ed1220803562..1340e3a2ed65 100644
--- a/tvix/store/src/listener/mod.rs
+++ b/tvix/store/src/listener/mod.rs
@@ -88,7 +88,7 @@ impl Connected for Connection {
             ListenerConnectInfo::TCP(tcp_stream.connect_info())
         } else if let Some(unix_stream) = self.try_borrow_unix() {
             ListenerConnectInfo::Unix(unix_stream.connect_info())
-        } else if let Some(_) = self.try_borrow_stdio() {
+        } else if self.try_borrow_stdio().is_some() {
             ListenerConnectInfo::Stdio
         } else {
             ListenerConnectInfo::Other
diff --git a/tvix/store/src/nar/renderer.rs b/tvix/store/src/nar/renderer.rs
index 6e98d2902df6..2b7ad46f9ff7 100644
--- a/tvix/store/src/nar/renderer.rs
+++ b/tvix/store/src/nar/renderer.rs
@@ -84,7 +84,7 @@ pub async fn write_nar<W: AsyncWrite + Unpin + Send>(
 
     walk_node(
         nar_root_node,
-        &proto_root_node,
+        proto_root_node,
         blob_service,
         directory_service,
     )
diff --git a/tvix/store/src/proto/mod.rs b/tvix/store/src/proto/mod.rs
index f95ea62f972e..4bf4cfba1b6a 100644
--- a/tvix/store/src/proto/mod.rs
+++ b/tvix/store/src/proto/mod.rs
@@ -173,7 +173,7 @@ impl PathInfo {
                         castorepb::node::Node::Symlink(_) => {}
                     }
                     // parse the name of the node itself and return
-                    parse_node_name_root(&node.get_name(), ValidatePathInfoError::InvalidNodeName)?
+                    parse_node_name_root(node.get_name(), ValidatePathInfoError::InvalidNodeName)?
                 }
             },
         };
diff --git a/tvix/store/src/tests/fixtures.rs b/tvix/store/src/tests/fixtures.rs
index 5ff37a508433..f0d0f35378cf 100644
--- a/tvix/store/src/tests/fixtures.rs
+++ b/tvix/store/src/tests/fixtures.rs
@@ -107,7 +107,7 @@ lazy_static! {
                 size: 0,
             })),
         }),
-        references: vec![DUMMY_OUTPUT_HASH.clone().into()],
+        references: vec![DUMMY_OUTPUT_HASH.clone()],
         narinfo: None,
     };