Skip to content

Commit 04e76c3

Browse files
committed
refactor: fix clippy/rustc warnings
1 parent 974a7d9 commit 04e76c3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ macro_rules! parse_with {
202202
}()
203203
}};
204204
}
205+
#[allow(unused_imports)] // This is used below, but clippy doesn't seem to detect it
205206
use parse_with;
206207

207208
/// Parses the input creating an abstract syntax tree

src/parser/expression.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,16 @@ pub enum Expr {
107107
/// Operation to perform
108108
op: Spanned<UnaryOp>,
109109
/// Operand to perform the operation on
110-
operand: Box<Spanned<Expr>>,
110+
operand: Box<Spanned<Self>>,
111111
},
112112
/// Binary operation on other expressions
113113
BinaryOp {
114114
/// Operation to perform
115115
op: Spanned<BinaryOp>,
116116
/// Left operand of the operation
117-
lhs: Box<Spanned<Expr>>,
117+
lhs: Box<Spanned<Self>>,
118118
/// Right operand of the operation
119-
rhs: Box<Spanned<Expr>>,
119+
rhs: Box<Spanned<Self>>,
120120
},
121121
}
122122

0 commit comments

Comments
 (0)