From 3dd5ba042be0a36b0f94aba34414bb20a7e5ed61 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 12 Oct 2023 19:34:12 +0200 Subject: refactor(tvix/store): clippy lint Change-Id: I03aa5c6cb0167ff6cb7312d81d1e43116fcb6d70 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9710 Reviewed-by: edef Tested-by: BuildkiteCI Autosubmit: flokli --- tvix/store/src/listener/mod.rs | 2 +- tvix/store/src/nar/renderer.rs | 2 +- tvix/store/src/proto/mod.rs | 2 +- tvix/store/src/tests/fixtures.rs | 2 +- 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( 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, }; -- cgit 1.4.1