diff options
author | Florian Klink <flokli@flokli.de> | 2023-10-16T10·41+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-10-16T11·13+0000 |
commit | 1d97b4230fdc74039bddc8b8b4e159c6ebc1dfbd (patch) | |
tree | e4294be3e9601e81e2b8bb553cc62afab020a6b7 /tvix/castore/src/proto | |
parent | 869be82e092a1a09b7fd55cef12c863bd1fdfd7b (diff) |
refactor(tvix/castore): clippy r/6824
Change-Id: I8a792d6b238190a78390c5d8f638669a2681f70f Reviewed-on: https://cl.tvl.fyi/c/depot/+/9746 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'tvix/castore/src/proto')
-rw-r--r-- | tvix/castore/src/proto/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/castore/src/proto/mod.rs b/tvix/castore/src/proto/mod.rs index 0e7a363149b2..cd7ea66b8ccd 100644 --- a/tvix/castore/src/proto/mod.rs +++ b/tvix/castore/src/proto/mod.rs @@ -133,7 +133,7 @@ impl node::Node { } // ensure the symlink target is not empty and doesn't contain null bytes. node::Node::Symlink(symlink_node) => { - if symlink_node.target.len() == 0 || symlink_node.target.contains(&b'\0') { + if symlink_node.target.is_empty() || symlink_node.target.contains(&b'\0') { Err(ValidateNodeError::InvalidSymlinkTarget( symlink_node.target.to_vec(), ))?; |