1
0
Fork 0
forked from wry/wry

all: address clippy lints

This commit is contained in:
Julian Orth 2024-12-07 14:59:28 +01:00
parent 558fe3d3ce
commit e2f31646f2
19 changed files with 25 additions and 26 deletions

View file

@ -14,7 +14,7 @@ pub enum Token<'a> {
Literal(&'a [u8]),
}
impl<'a> Token<'a> {
impl Token<'_> {
pub fn name(self, value_context: bool) -> &'static str {
match self {
Token::Dot => "`.`",

View file

@ -58,7 +58,7 @@ struct Parser<'a, 'b> {
type Key = VecDeque<Spanned<String>>;
impl<'a, 'b> Parser<'a, 'b> {
impl<'a> Parser<'a, '_> {
fn parse(mut self) -> Result<Spanned<Value>, Spanned<ParserError>> {
self.parse_document()
}