chore: run rustfmt

This commit is contained in:
Anand Balakrishnan 2023-03-22 14:57:27 -07:00
parent 00a1c32fc1
commit ad4d85ec3d
No known key found for this signature in database
6 changed files with 25 additions and 19 deletions

View file

@ -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();

View file

@ -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;

View file

@ -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]