Skip to content

Commit ae70d8d

Browse files
committed
Deprecate crate::DebugPrettyPrint since v0.2.0
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.
1 parent fb4b615 commit ae70d8d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/lib.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,14 @@ pub mod traverse;
192192
pub mod tree;
193193

194194
pub use self::anchor::{AdoptAs, InsertAs};
195-
pub use self::node::{DebugPrettyPrint, FrozenNode, HierarchyError, HotNode, Node};
195+
pub use self::node::{FrozenNode, HierarchyError, HotNode, Node};
196196
pub use self::tree::{
197197
HierarchyEditGrant, HierarchyEditGrantError, HierarchyEditProhibition,
198198
HierarchyEditProhibitionError, Tree,
199199
};
200+
201+
/// Deprecated re-export of [`node::DebugPrettyPrint`].
202+
// `#[deprecated] cannot be used for `use` statement. See
203+
// <https://github.com/rust-lang/rust/issues/30827>.
204+
#[deprecated(since = "0.2.0", note = "use `node::DebugPrettyPrint` instead")]
205+
pub type DebugPrettyPrint<'a, T> = self::node::DebugPrettyPrint<'a, T>;

0 commit comments

Comments
 (0)