Skip to content

Commit

Permalink
testdata fix, rm unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Oct 9, 2023
1 parent 4dca40d commit 7f331f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/component.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use std::{collections::{BTreeSet, BTreeMap}, cell::RefCell, rc::Rc, f64::consts::TAU, fmt, ops::Sub};
use anyhow::{Result, anyhow};
use std::{collections::{BTreeSet, BTreeMap}, cell::RefCell, rc::Rc, f64::consts::TAU, fmt};
use anyhow::Result;

use log::{debug, error};
use serde::{Serialize, Deserialize};
use tsify::Tsify;

use crate::{node::{N, Node}, math::deg::Deg, edge::{E, self, EdgeArg, Edge}, contains::{Contains, ShapeContainsPoint}, region::{Region, RegionArg, R}, segment::Segment, set::S, theta_points::{ThetaPoints, ThetaPointsArg}, r2::R2, to::To, zero::Zero, fmt::Fmt, hull::Hull, shape::AreaArg};
use crate::{node::{N, Node}, math::deg::Deg, edge::{E, self, EdgeArg, Edge}, contains::{Contains, ShapeContainsPoint}, region::{Region, RegionArg}, segment::Segment, set::S, theta_points::{ThetaPoints, ThetaPointsArg}, r2::R2, to::To, zero::Zero, fmt::Fmt, hull::Hull, shape::AreaArg};

pub type C<D> = Rc<RefCell<Component<D>>>;

Expand Down
2 changes: 1 addition & 1 deletion src/dual.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{fmt::{Debug, Display}, iter::{Sum, repeat}, ops::{Add, AddAssign, Deref, Div, Mul, Neg, Sub, SubAssign}};

use approx::{AbsDiffEq, RelativeEq};
use crate::{fmt::Fmt, to::To, shape::{InputSpec, Shape, Duals}};
use crate::{fmt::Fmt, to::To};
use nalgebra::{ComplexField, Dyn, Matrix, RealField, U1};
use num_dual::{Derivative, DualDVec64};
use num_traits::Zero;
Expand Down
4 changes: 2 additions & 2 deletions src/scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ pub mod tests {
("-12-", 1.0010372353827426),
("--2-", 1.26689560279433),
("-1--", 1.2668956027943392),
("---3", 2.9962311616537862),
("0---", 2.9962647199737296),
("---3", 2.2443754306663317),
("0---", 2.2443754306663326),
].into();
assert_eq!(regions.len(), expected.len());
match env::var("GEN_VALS").map(|s| s.parse::<usize>().unwrap()).ok() {
Expand Down

0 comments on commit 7f331f8

Please sign in to comment.