Skip to content

Commit

Permalink
move serde module comments to serde.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
LoZack19 committed Aug 29, 2024
1 parent d082fec commit 644828b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
use std::fmt::{self, Debug, Display, Formatter};
use std::num::NonZeroUsize;

/// Implement serde::Serialize and serde::Deserialize traits for Tree
///
/// # Warning
/// Serialize and Deserialize implementations are recursive. They require an amount of stack memory
/// proportional to the tree depth.
#[cfg(feature = "serde")]
pub mod serde;

Expand Down
6 changes: 6 additions & 0 deletions src/serde.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
//! Implement `serde::Serialize` and `serde::Deserialize` traits for Tree
//!
//! # Warning
//! Serialize and Deserialize implementations are recursive. They require an amount of stack memory
//! proportional to the depth of the tree.

use std::{fmt, marker::PhantomData};

use serde::{
Expand Down

0 comments on commit 644828b

Please sign in to comment.