diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-06 11:49:09 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-06 11:49:09 +0200 |
commit | cd366dfdfad18b38c4e542e6db61ced3929d42f9 (patch) | |
tree | 9fd47c3964b13a52e09373e3eb8b79225eb56c5e /common/src/impl.rs | |
parent | 98538d1e7220ffb7126c0b5e3d5f9c6c44e4dba9 (diff) | |
download | jellything-cd366dfdfad18b38c4e542e6db61ced3929d42f9.tar jellything-cd366dfdfad18b38c4e542e6db61ced3929d42f9.tar.bz2 jellything-cd366dfdfad18b38c4e542e6db61ced3929d42f9.tar.zst |
quick setup command
Diffstat (limited to 'common/src/impl.rs')
-rw-r--r-- | common/src/impl.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/src/impl.rs b/common/src/impl.rs index 55364ab..d7759af 100644 --- a/common/src/impl.rs +++ b/common/src/impl.rs @@ -3,7 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2023 metamuffin <metamuffin.org> */ -use crate::{SourceTrack, SourceTrackKind}; +use crate::{NodeKind, SourceTrack, SourceTrackKind}; impl SourceTrackKind { pub fn letter(&self) -> char { @@ -34,3 +34,9 @@ impl std::fmt::Display for SourceTrack { )) } } + +impl Default for NodeKind { + fn default() -> Self { + Self::Collection + } +} |