summaryrefslogtreecommitdiffstats
path: root/src/parse
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-18 00:47:39 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-18 00:47:39 -0500
commitd53e7af40835b06a391bd8780edaa0160eec2411 (patch)
tree055765a1f34956b2a822bd40fe2df332501a805b /src/parse
parent53e0cb5c7b2002a5ca2cbe3e82d645c9a7b8ab85 (diff)
downloadnbsh-d53e7af40835b06a391bd8780edaa0160eec2411.tar.gz
nbsh-d53e7af40835b06a391bd8780edaa0160eec2411.zip
clippy
Diffstat (limited to 'src/parse')
-rw-r--r--src/parse/ast.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/parse/ast.rs b/src/parse/ast.rs
index 5dabb43..bd177a4 100644
--- a/src/parse/ast.rs
+++ b/src/parse/ast.rs
@@ -351,7 +351,6 @@ impl WordPart {
}
}
- #[allow(clippy::needless_pass_by_value)]
fn build_ast(
pair: pest::iterators::Pair<Rule>,
) -> impl Iterator<Item = Self> + '_ {
@@ -402,7 +401,6 @@ struct Redirect {
}
impl Redirect {
- #[allow(clippy::needless_pass_by_value)]
fn build_ast(pair: pest::iterators::Pair<Rule>) -> Self {
assert!(matches!(pair.as_rule(), Rule::redirect));
let mut iter = pair.into_inner();