Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mo271 committed Nov 25, 2024
1 parent 24c437c commit a9f8ef1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion jxl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ pub mod headers;
pub mod icc;
pub mod image;
pub mod render;
#[macro_use]
pub mod util;
4 changes: 2 additions & 2 deletions jxl/src/render/stages/upsample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ impl RenderPipelineStage for Upsample2x {
#[cfg(test)]
mod test {
use super::*;
use util::test::assert_almost_eq;
use crate::{error::Result, image::Image, render::test::make_and_run_simple_pipeline};
//use util::test::assert_almost_eq;
use crate::{error::Result, image::Image, render::test::make_and_run_simple_pipeline, util::test::assert_almost_eq};
use test_log::test;

#[test]
Expand Down
2 changes: 0 additions & 2 deletions jxl/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

#[macro_use]
pub mod test;
pub use test::assert_almost_eq;

mod bits;
#[allow(unused)]
Expand Down
2 changes: 2 additions & 0 deletions jxl/src/util/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.


macro_rules! assert_almost_eq {
($left:expr, $right:expr, $max_error:expr $(,)?) => {
match (&$left, &$right, &$max_error) {
Expand All @@ -23,6 +24,7 @@ macro_rules! assert_almost_eq {
}
};
}
pub(crate) use assert_almost_eq;


#[cfg(test)]
Expand Down

0 comments on commit a9f8ef1

Please sign in to comment.