Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide committed May 26, 2024
1 parent 4e9fc60 commit cb8f9c8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/drawing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use imageproc::drawing::{
draw_cross_mut, draw_filled_circle_mut, draw_filled_rect_mut, draw_hollow_circle_mut,
draw_hollow_rect_mut, draw_line_segment_mut,
};
use imageproc::rect_ext::Rect;
use imageproc::rect::Rect;
use std::env;
use std::path::Path;

Expand Down
2 changes: 1 addition & 1 deletion examples/template_matching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use image::{open, GenericImage, GrayImage, Luma, Rgb, RgbImage};
use imageproc::definitions::Image;
use imageproc::drawing::draw_hollow_rect_mut;
use imageproc::map::map_pixels;
use imageproc::rect_ext::Rect;
use imageproc::rect::Rect;
#[cfg(feature = "rayon")]
use imageproc::template_matching::match_template_parallel;
use imageproc::template_matching::{match_template, MatchTemplateMethod};
Expand Down
6 changes: 3 additions & 3 deletions src/drawing/rect.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::definitions::Image;
use crate::drawing::line::draw_line_segment_mut;
use crate::drawing::Canvas;
use crate::rect_ext::{Rect, RectExt};
use crate::rect::{Rect, RectExt};
use image::GenericImage;
use std::f32;

Expand Down Expand Up @@ -73,7 +73,7 @@ where
mod tests {
use super::*;
use crate::drawing::Blend;
use crate::rect_ext::Rect;
use crate::rect::Rect;
use image::{GrayImage, Luma, Pixel, Rgba, RgbaImage};

#[test]
Expand Down Expand Up @@ -189,7 +189,7 @@ mod tests {
#[cfg(test)]
mod benches {
use super::*;
use crate::rect_ext::Rect;
use crate::rect::Rect;
use image::{Rgb, RgbImage};
use test::{black_box, Bencher};

Expand Down
2 changes: 1 addition & 1 deletion src/edges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ fn hysteresis(input: &Image<Luma<f32>>, low_thresh: f32, high_thresh: f32) -> Im
mod benches {
use super::canny;
use crate::drawing::draw_filled_rect_mut;
use crate::rect_ext::Rect;
use crate::rect::Rect;
use ::test;
use image::{GrayImage, Luma};

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub mod pixelops;
pub mod point;
#[cfg(any(feature = "property-testing", test))]
pub mod property_testing;
pub mod rect_ext;
pub mod rect;
pub mod region_labelling;
pub mod seam_carving;
pub mod stats;
Expand Down
2 changes: 1 addition & 1 deletion src/rect_ext.rs → src/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl RectExt for Rect {

#[cfg(test)]
mod tests {
use crate::rect_ext::RectExt;
use crate::rect::RectExt;

use super::Rect;

Expand Down

0 comments on commit cb8f9c8

Please sign in to comment.