diff --git a/code/ch01-02/src/object/handle.rs b/code/ch01-02/src/object/handle.rs index 592282d..a36d3df 100644 --- a/code/ch01-02/src/object/handle.rs +++ b/code/ch01-02/src/object/handle.rs @@ -20,7 +20,8 @@ impl Handle { #[cfg(test)] mod tests { use super::*; - + use crate::object::DummyObject; + #[test] fn new_obj_handle() { let obj = DummyObject::new(); diff --git a/code/ch01-03/src/object/handle.rs b/code/ch01-03/src/object/handle.rs index 58a0b47..328fddf 100644 --- a/code/ch01-03/src/object/handle.rs +++ b/code/ch01-03/src/object/handle.rs @@ -20,6 +20,7 @@ impl Handle { #[cfg(test)] mod tests { use super::*; + use crate::object::DummyObject; #[test] fn new_obj_handle() {