chore: run rustfmt
This commit is contained in:
parent
00a1c32fc1
commit
ad4d85ec3d
6 changed files with 25 additions and 19 deletions
|
|
@ -43,9 +43,10 @@ impl<'a> Iterator for AstIter<'a> {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::expr::{Expr, ExprBuilder, ExprRef};
|
||||
use itertools::Itertools;
|
||||
|
||||
use crate::expr::{Expr, ExprBuilder, ExprRef};
|
||||
|
||||
#[test]
|
||||
fn simple_iter() {
|
||||
let mut ctx = ExprBuilder::new();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
use super::{internal_macros, BoolExpr, NumExpr};
|
||||
use std::ops::{Add, Div, Mul, Neg};
|
||||
|
||||
use super::{internal_macros, BoolExpr, NumExpr};
|
||||
|
||||
impl Neg for NumExpr {
|
||||
type Output = NumExpr;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
use std::any::Any;
|
||||
|
||||
use super::{iter::AstIter, ExprRef};
|
||||
use super::iter::AstIter;
|
||||
use super::ExprRef;
|
||||
|
||||
/// A trait representing expressions
|
||||
pub trait Expr {
|
||||
|
|
@ -25,9 +26,10 @@ impl dyn Expr {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use proptest::prelude::*;
|
||||
|
||||
use super::super::{arbitrary, BoolExpr, NumExpr};
|
||||
use super::*;
|
||||
use proptest::prelude::*;
|
||||
|
||||
proptest! {
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue