Default for Trees
All checks were successful
buildbot/cargo fmt (1.72) Build done.
buildbot/cargo doc (1.72) Build done.
buildbot/cargo clippy (1.65) Build done.
buildbot/cargo clippy (1.72) Build done.
buildbot/cargo test (1.65) Build done.

This commit is contained in:
AF 2023-08-31 20:56:52 +00:00
parent 5b3eda0ac8
commit d61d70b996

View File

@ -70,6 +70,12 @@ impl<A> Trees<A> {
} }
} }
impl<A> Default for Trees<A> {
fn default() -> Self {
Self::new()
}
}
impl<A> Clone for Trees<A> { impl<A> Clone for Trees<A> {
fn clone(&self) -> Self { fn clone(&self) -> Self {
Self::new() Self::new()