chore(tvix): fix trivial clippy lints
Relates to b/321. Change-Id: I37284f89b186e469eb432e2bbedb37aa125a6ad4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9961 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
67999f0dcf
commit
b3b1f649d6
14 changed files with 35 additions and 36 deletions
|
|
@ -19,7 +19,7 @@ use crate::{aterm, nixhash};
|
|||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum Error<I> {
|
||||
#[error("parsing error: {0}")]
|
||||
ParseError(NomError<I>),
|
||||
Parser(NomError<I>),
|
||||
#[error("premature EOF")]
|
||||
Incomplete,
|
||||
#[error("validation error: {0}")]
|
||||
|
|
@ -38,7 +38,7 @@ pub(crate) fn parse(i: &[u8]) -> Result<Derivation, Error<&[u8]>> {
|
|||
Ok(derivation)
|
||||
}
|
||||
Err(nom::Err::Incomplete(_)) => Err(Error::Incomplete),
|
||||
Err(nom::Err::Error(e) | nom::Err::Failure(e)) => Err(Error::ParseError(e)),
|
||||
Err(nom::Err::Error(e) | nom::Err::Failure(e)) => Err(Error::Parser(e)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue