all: address clippy lints
This commit is contained in:
parent
558fe3d3ce
commit
e2f31646f2
19 changed files with 25 additions and 26 deletions
|
|
@ -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 => "`.`",
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue