Skip to content

Commit

Permalink
Deprecate crate::DebugPrettyPrint since v0.2.0
Browse files Browse the repository at this point in the history
Currently `#[deprecated]` cannot be used for a use declaration (see
<rust-lang/rust#30827>), so make it `pub type`
temporarily. I believe this change is not breaking since the constructor
of `DebugPrettyPrint` is not public.
  • Loading branch information
lo48576 committed Apr 30, 2022
1 parent fb4b615 commit ae70d8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,14 @@ pub mod traverse;
pub mod tree;

pub use self::anchor::{AdoptAs, InsertAs};
pub use self::node::{DebugPrettyPrint, FrozenNode, HierarchyError, HotNode, Node};
pub use self::node::{FrozenNode, HierarchyError, HotNode, Node};
pub use self::tree::{
HierarchyEditGrant, HierarchyEditGrantError, HierarchyEditProhibition,
HierarchyEditProhibitionError, Tree,
};

/// Deprecated re-export of [`node::DebugPrettyPrint`].
// `#[deprecated] cannot be used for `use` statement. See
// <https://github.com/rust-lang/rust/issues/30827>.
#[deprecated(since = "0.2.0", note = "use `node::DebugPrettyPrint` instead")]
pub type DebugPrettyPrint<'a, T> = self::node::DebugPrettyPrint<'a, T>;

0 comments on commit ae70d8d

Please sign in to comment.