Skip to content

Commit fc022da

Browse files
committed
fix around unused import
1 parent 3eff546 commit fc022da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/physics.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
pub use rusty_mujoco as binding;
22
pub use binding::{mjModel, mjData, ObjectId, obj, Joint, joint, mjMAXVAL, mjMINVAL};
33

4-
use binding::{Obj, mjtObj};
54
use crate::error::Error;
65

76
pub struct Physics {
@@ -54,11 +53,11 @@ impl Physics {
5453
rusty_mujoco::mj_resetData(&self.model, &mut self.data);
5554
}
5655

57-
pub fn object_id<O: Obj>(&self, name: &str) -> Option<ObjectId<O>> {
56+
pub fn object_id<O: binding::Obj>(&self, name: &str) -> Option<ObjectId<O>> {
5857
self.model.object_id(name)
5958
}
6059

61-
pub fn object_name<O: Obj>(&self, id: ObjectId<O>) -> String {
60+
pub fn object_name<O: binding::Obj>(&self, id: ObjectId<O>) -> String {
6261
binding::mj_id2name::<O>(&self.model, id)
6362
}
6463
}

0 commit comments

Comments
 (0)