diff --git a/src/core/src/coosys.rs b/src/core/src/coosys.rs index be3e99b5..e8688458 100644 --- a/src/core/src/coosys.rs +++ b/src/core/src/coosys.rs @@ -35,7 +35,7 @@ mod tests { let lonlat: LonLatT = LonLatT::new(ArcDeg(0.0).into(), ArcDeg(0.0).into()); let gal_lonlat = - super::apply_coo_system(&CooSystem::ICRS, &CooSystem::GAL, &lonlat.vector()).lonlat(); + super::apply_coo_system(CooSystem::ICRS, CooSystem::GAL, &lonlat.vector()).lonlat(); let gal_lon_deg = gal_lonlat.lon().0 * 360.0 / (2.0 * std::f64::consts::PI); let gal_lat_deg = gal_lonlat.lat().0 * 360.0 / (2.0 * std::f64::consts::PI); @@ -53,7 +53,7 @@ mod tests { let lonlat: LonLatT = LonLatT::new(ArcDeg(0.0).into(), ArcDeg(0.0).into()); let j2000_lonlat = - super::apply_coo_system(&CooSystem::GAL, &CooSystem::ICRS, &lonlat.vector()).lonlat(); + super::apply_coo_system(CooSystem::GAL, CooSystem::ICRS, &lonlat.vector()).lonlat(); let j2000_lon_deg = j2000_lonlat.lon().0 * 360.0 / (2.0 * std::f64::consts::PI); let j2000_lat_deg = j2000_lonlat.lat().0 * 360.0 / (2.0 * std::f64::consts::PI); @@ -71,9 +71,9 @@ mod tests { let gal_lonlat: LonLatT = LonLatT::new(ArcDeg(0.0).into(), ArcDeg(0.0).into()); let icrs_pos = - super::apply_coo_system(&CooSystem::GAL, &CooSystem::ICRS, &gal_lonlat.vector()); + super::apply_coo_system(CooSystem::GAL, CooSystem::ICRS, &gal_lonlat.vector()); - let gal_lonlat = super::apply_coo_system(&CooSystem::ICRS, &CooSystem::GAL, &icrs_pos); + let gal_lonlat = super::apply_coo_system(CooSystem::ICRS, CooSystem::GAL, &icrs_pos); let gal_lon_deg = gal_lonlat.lon().0 * 360.0 / (2.0 * std::f64::consts::PI); let gal_lat_deg = gal_lonlat.lat().0 * 360.0 / (2.0 * std::f64::consts::PI); diff --git a/src/core/src/healpix/cell.rs b/src/core/src/healpix/cell.rs index dccdbf4b..ac885f4e 100644 --- a/src/core/src/healpix/cell.rs +++ b/src/core/src/healpix/cell.rs @@ -462,7 +462,6 @@ impl Ord for HEALPixCell { } } -#[test] mod tests { use super::HEALPixCell;