#[macro_use] the log crate (#775)

This commit is contained in:
0HyperCube
2022-09-08 21:14:01 +01:00
committed by Keavon Chambers
parent 655831eedf
commit 788552e10c
18 changed files with 49 additions and 42 deletions
+2 -2
View File
@@ -335,7 +335,7 @@ fn path_intersections(a: &SubCurve, b: &SubCurve, intersections: &mut Vec<Inters
// Return the best estimate of intersection regardless of quality
// Also provides a base case and prevents infinite recursion
if a.available_precision() <= F64PRECISE || b.available_precision() <= F64PRECISE {
log::trace!("Precision reached");
trace!("Precision reached");
intersections.push(cross);
return;
}
@@ -343,7 +343,7 @@ fn path_intersections(a: &SubCurve, b: &SubCurve, intersections: &mut Vec<Inters
// Alternate base case
// Note: may occur for the less forgiving side of a `PathSeg` endpoint intersect
if a.available_precision() <= F64PRECISE || b.available_precision() <= F64PRECISE {
log::trace!("Precision reached without finding intersect");
trace!("Precision reached without finding intersect");
return;
}
}
+4
View File
@@ -1,3 +1,7 @@
// `macro_use` puts the log macros (`error!`, `warn!`, `debug!`, `info!` and `trace!`) in scope for the crate
#[macro_use]
extern crate log;
pub mod boolean_ops;
/// Contains the [Color](color::Color) type.
pub mod color;