diff options
author | metamuffin <metamuffin@disroot.org> | 2023-01-18 21:49:11 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-01-18 21:49:11 +0100 |
commit | fbc1128f30438a4e18521073eb1bb79a77a7f20d (patch) | |
tree | 94c0a41f6d3a4309944a05eb4aaff5ab2e3d24e4 /server/src/library.rs | |
parent | aaf7b47547e7dd43efb4da2f2790745521cd6eea (diff) | |
download | jellything-fbc1128f30438a4e18521073eb1bb79a77a7f20d.tar jellything-fbc1128f30438a4e18521073eb1bb79a77a7f20d.tar.bz2 jellything-fbc1128f30438a4e18521073eb1bb79a77a7f20d.tar.zst |
first steps for registration
Diffstat (limited to 'server/src/library.rs')
-rw-r--r-- | server/src/library.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/library.rs b/server/src/library.rs index 17adf3c..8c2e809 100644 --- a/server/src/library.rs +++ b/server/src/library.rs @@ -35,9 +35,9 @@ pub struct Item { } impl Library { - pub fn open(path: &str) -> anyhow::Result<Self> { + pub fn open(path: &PathBuf) -> anyhow::Result<Self> { Ok(Self { - root: Node::from_path(path.into(), PathBuf::new(), true).context("indexing root")?, + root: Node::from_path(path.clone(), PathBuf::new(), true).context("indexing root")?, }) } pub fn nested_path(&self, path: &Path) -> anyhow::Result<Arc<Node>> { |