refactor(tvix/store): clippy lint
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>
This commit is contained in:
parent
04c1f151f3
commit
3dd5ba042b
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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)?
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
|
@ -107,7 +107,7 @@ lazy_static! {
|
|||
size: 0,
|
||||
})),
|
||||
}),
|
||||
references: vec![DUMMY_OUTPUT_HASH.clone().into()],
|
||||
references: vec![DUMMY_OUTPUT_HASH.clone()],
|
||||
narinfo: None,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue