Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mx00s committed Dec 2, 2020
1 parent 937a0dc commit 8f74864
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions src/ast.rs
Expand Up @@ -119,7 +119,7 @@ where
fn try_from((operator, args): (O, &[Self])) -> Result<Self, Self::Error> {
Ok(Self(Node::from_op(
operator,
&args.iter().cloned().map(|a| a.0).collect::<Vec<_>>()
&args.iter().cloned().map(|a| a.0).collect::<Vec<_>>(),
)?))
}
}
Expand Down Expand Up @@ -604,10 +604,7 @@ mod tests {
fn ast__variable_substitution() {
let actual = example_ast().substitute(4.into(), &Var::X);
let expected = Ok(Op::Plus
.apply(&[
2.into(),
Op::Times.apply(&[3.into(), 4.into()]).unwrap(),
])
.apply(&[2.into(), Op::Times.apply(&[3.into(), 4.into()]).unwrap()])
.unwrap());
assert_eq!(actual, expected);
}
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Expand Up @@ -13,9 +13,8 @@
//! reasonable defaults for this repository.

#![deny(missing_docs)]

#![deny(clippy::all)]
#![deny(clippy::pedantic)]
#![allow(clippy::unit_arg)] // catches false positives due to single-element enum variants
#![allow(clippy::unit_arg)] // catches false positives due to single-element enum variants

pub mod ast;

0 comments on commit 8f74864

Please sign in to comment.