From d7feb6c825189dfdaa75109bc36658894d78eef7 Mon Sep 17 00:00:00 2001 From: Danny McGee Date: Tue, 19 Dec 2023 17:44:59 -0500 Subject: [PATCH] Fix crate imports in doctests --- studio-bvh/src/frame_cursor.rs | 8 ++++---- studio-bvh/src/joint.rs | 12 ++++++------ studio-bvh/src/lib.rs | 36 +++++++++++++++++----------------- studio-bvh/src/macros.rs | 4 ++-- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/studio-bvh/src/frame_cursor.rs b/studio-bvh/src/frame_cursor.rs index dd81f58..8922a5b 100644 --- a/studio-bvh/src/frame_cursor.rs +++ b/studio-bvh/src/frame_cursor.rs @@ -155,7 +155,7 @@ impl<'bvh> FrameCursor<'bvh> { /// /// ``` /// # fn main() { - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// let mut simple_skeleton = bvh! { /// HIERARCHY /// ROOT Base @@ -254,7 +254,7 @@ impl<'bvh> FrameCursor<'bvh> { /// /// ``` /// # fn main() { - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// let mut simple_skeleton = bvh! { /// HIERARCHY /// ROOT Base @@ -349,7 +349,7 @@ impl<'bvh> FrameCursor<'bvh> { /// /// ``` /// # fn main() { - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// let mut simple_skeleton = bvh! { /// HIERARCHY /// ROOT Base @@ -431,7 +431,7 @@ impl<'bvh> FrameCursor<'bvh> { /// /// ``` /// # fn main() { - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// let mut simple_skeleton = bvh! { /// HIERARCHY /// ROOT Base diff --git a/studio-bvh/src/joint.rs b/studio-bvh/src/joint.rs index 9c35966..4d12ca6 100644 --- a/studio-bvh/src/joint.rs +++ b/studio-bvh/src/joint.rs @@ -559,7 +559,7 @@ impl Joint<'_> { /// # Examples /// /// ```no_run - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// let bvh = bvh! { /// HIERARCHY /// ROOT Hips @@ -588,7 +588,7 @@ impl Joint<'_> { /// # Examples /// /// ```no_run - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// let bvh = bvh! { /// # HIERARCHY /// # ROOT Base @@ -625,7 +625,7 @@ impl Joint<'_> { /// # Examples /// /// ```no_run - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// let bvh = bvh! { /// HIERARCHY /// ROOT Hips @@ -656,7 +656,7 @@ impl Joint<'_> { /// # Examples /// /// ```no_run - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// let bvh = bvh! { /// HIERARCHY /// ROOT Hips @@ -688,7 +688,7 @@ impl Joint<'_> { /// # Examples /// /// ```no_run - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// let bvh = bvh! { /// HIERARCHY /// ROOT Base @@ -733,7 +733,7 @@ impl Joint<'_> { /// # Examples /// /// ```no_run - /// # use bvh_anim::{bvh, ChannelType}; + /// # use studio_bvh::{bvh, ChannelType}; /// let bvh = bvh! { /// HIERARCHY /// ROOT Hips diff --git a/studio-bvh/src/lib.rs b/studio-bvh/src/lib.rs index 1c0a05f..90b214a 100644 --- a/studio-bvh/src/lib.rs +++ b/studio-bvh/src/lib.rs @@ -291,7 +291,7 @@ pub fn from_reader(data: R) -> Result { /// # Examples /// /// ``` -/// # use bvh_anim::{self, from_bytes}; +/// # use studio_bvh::{self, from_bytes}; /// let bvh_string = br#" /// HIERARCHY /// ROOT Hips @@ -311,7 +311,7 @@ pub fn from_reader(data: R) -> Result { /// /// let bvh = from_bytes(&bvh_string[..])?; /// # let _ = bvh; -/// # Result::<(), bvh_anim::errors::LoadError>::Ok(()) +/// # Result::<(), studio_bvh::errors::LoadError>::Ok(()) /// ``` #[inline] pub fn from_bytes>(bytes: B) -> Result { @@ -323,7 +323,7 @@ pub fn from_bytes>(bytes: B) -> Result { /// # Examples /// /// ``` -/// # use bvh_anim::{self, from_str}; +/// # use studio_bvh::{self, from_str}; /// let bvh_string = " /// HIERARCHY /// ROOT Hips @@ -343,7 +343,7 @@ pub fn from_bytes>(bytes: B) -> Result { /// /// let bvh = from_str(bvh_string)?; /// # let _ = bvh; -/// # Result::<(), bvh_anim::errors::LoadError>::Ok(()) +/// # Result::<(), studio_bvh::errors::LoadError>::Ok(()) /// ``` #[inline] pub fn from_str(string: &str) -> Result { @@ -384,7 +384,7 @@ impl Bvh { /// # Examples /// /// ``` - /// # use bvh_anim::{self, Bvh}; + /// # use studio_bvh::{self, Bvh}; /// let bvh_string = br#" /// HIERARCHY /// ROOT Hips @@ -404,7 +404,7 @@ impl Bvh { /// /// let bvh = Bvh::from_bytes(&bvh_string[..])?; /// # let _ = bvh; - /// # Result::<(), bvh_anim::errors::LoadError>::Ok(()) + /// # Result::<(), studio_bvh::errors::LoadError>::Ok(()) /// ``` #[inline] pub fn from_bytes>(bytes: B) -> Result { @@ -439,7 +439,7 @@ impl Bvh { /// # Examples /// /// ```no_run - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// # use std::io; /// # use std::fs::File; /// let bvh = bvh! { @@ -478,7 +478,7 @@ impl Bvh { /// # Examples /// /// ``` - /// # use bvh_anim::{Bvh, bvh}; + /// # use studio_bvh::{Bvh, bvh}; /// let bvh = Bvh::new(); /// assert!(bvh.root_joint().is_none()); /// @@ -531,7 +531,7 @@ impl Bvh { /// # Example /// /// ``` - /// # use bvh_anim::Bvh; + /// # use studio_bvh::Bvh; /// # fn use_bvh(bvh: Bvh) { /// let bvh = // ... /// # bvh; @@ -557,7 +557,7 @@ impl Bvh { /// # Example /// /// ``` - /// # use bvh_anim::Bvh; + /// # use studio_bvh::Bvh; /// # fn use_bvh(bvh: Bvh) { /// let mut bvh = // ... /// # bvh; @@ -583,7 +583,7 @@ impl Bvh { /// # Example /// /// ``` - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// let mut bvh = bvh! { /// HIERARCHY /// // hierarchy omitted... @@ -631,7 +631,7 @@ impl Bvh { /// /// ``` /// # fn main() { - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// # use std::time::Duration; /// let bvh = bvh! { /// # HIERARCHY @@ -656,7 +656,7 @@ impl Bvh { /// /// ``` /// # fn main() { - /// # use bvh_anim::bvh; + /// # use studio_bvh::bvh; /// # use std::time::Duration; /// let mut bvh = bvh! { /// // ... @@ -775,7 +775,7 @@ impl ChannelType { /// # Examples /// /// ``` - /// # use bvh_anim::ChannelType; + /// # use studio_bvh::ChannelType; /// assert_eq!( /// ChannelType::from_bytes("Xrotation").unwrap(), /// ChannelType::RotationX); @@ -808,7 +808,7 @@ impl ChannelType { /// # Example /// /// ``` - /// # use bvh_anim::ChannelType; + /// # use studio_bvh::ChannelType; /// let channel_type = ChannelType::RotationX; /// assert!(channel_type.is_rotation()); /// ``` @@ -826,7 +826,7 @@ impl ChannelType { /// # Example /// /// ``` - /// # use bvh_anim::ChannelType; + /// # use studio_bvh::ChannelType; /// let channel_type = ChannelType::PositionZ; /// assert!(channel_type.is_position()); /// ``` @@ -840,7 +840,7 @@ impl ChannelType { /// # Example /// /// ``` - /// # use bvh_anim::{Axis, ChannelType}; + /// # use studio_bvh::{Axis, ChannelType}; /// let channel_type = ChannelType::PositionX; /// assert_eq!(channel_type.axis(), Axis::X); /// ``` @@ -916,7 +916,7 @@ impl Axis { /// # Examples /// /// ``` - /// # use bvh_anim::Axis; + /// # use studio_bvh::Axis; /// assert_eq!(Axis::X.vector(), [1.0, 0.0, 0.0]); /// assert_eq!(Axis::Y.vector(), [0.0, 1.0, 0.0]); /// assert_eq!(Axis::Z.vector(), [0.0, 0.0, 1.0]); diff --git a/studio-bvh/src/macros.rs b/studio-bvh/src/macros.rs index 5c8ba68..67d541d 100644 --- a/studio-bvh/src/macros.rs +++ b/studio-bvh/src/macros.rs @@ -237,7 +237,7 @@ macro_rules! parse_joints_internal { /// # Example /// /// ``` -/// # use bvh_anim::bvh; +/// # use studio_bvh::bvh; /// let simple_skeleton = bvh! { /// HIERARCHY /// ROOT Base @@ -287,7 +287,7 @@ macro_rules! parse_joints_internal { /// You can use the `bvh` macro to create empty `Bvh` instances: /// /// ``` -/// # use bvh_anim::bvh; +/// # use studio_bvh::bvh; /// let empty = bvh!{}; /// /// let empty = bvh! {