refactor(tvix): turn nullary enum variants into unit variants
Change-Id: Iad4f2cb4aa92b5bb29ead6050348a8cd3e7b8632 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9860 Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
520c5a191e
commit
e525272019
6 changed files with 30 additions and 30 deletions
|
|
@ -29,7 +29,7 @@ pub enum ValidatePathInfoError {
|
|||
|
||||
/// No node present
|
||||
#[error("No node present")]
|
||||
NoNodePresent(),
|
||||
NoNodePresent,
|
||||
|
||||
/// Node fails validation
|
||||
#[error("Invalid root node: {:?}", .0.to_string())]
|
||||
|
|
@ -159,7 +159,7 @@ impl PathInfo {
|
|||
// Ensure there is a (root) node present, and it properly parses to a [store_path::StorePath].
|
||||
let root_nix_path = match &self.node {
|
||||
None | Some(castorepb::Node { node: None }) => {
|
||||
Err(ValidatePathInfoError::NoNodePresent())?
|
||||
Err(ValidatePathInfoError::NoNodePresent)?
|
||||
}
|
||||
Some(castorepb::Node { node: Some(node) }) => {
|
||||
node.validate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue