refactor(tvix/store): clippy

Change-Id: I31ba268bda21c1f07c63520a269dd62f7b309e99
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9748
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-10-16 11:42:00 +01:00 committed by flokli
parent 1a3c610081
commit 72872785b4

View file

@ -150,7 +150,7 @@ impl PathInfo {
}
Some(castorepb::Node { node: Some(node) }) => {
node.validate()
.map_err(|e| ValidatePathInfoError::InvalidRootNode(e))?;
.map_err(ValidatePathInfoError::InvalidRootNode)?;
// parse the name of the node itself and return
parse_node_name_root(node.get_name(), ValidatePathInfoError::InvalidNodeName)?
}