Skip to content

Commit

Permalink
fix(clippy): Supress suspicious else formatting for commented out cod…
Browse files Browse the repository at this point in the history
…e block
  • Loading branch information
cfxegbert authored and cafkafk committed Nov 16, 2023
1 parent df94044 commit 803d2f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ fn main() -> std::io::Result<()> {
// NOTE: for some reason this is always true for u8, but I don't trust it
} else if let Some(stdin) = matches.get_one::<u8>("stdin") {
// If --stdin set
#[allow(clippy::suspicious_else_formatting)]
if stdin > &0 {
parse = crate::parser::parse(std::io::stdin().lock());
} else {
Expand Down

0 comments on commit 803d2f5

Please sign in to comment.