server: mcp + global: refactor

This commit is contained in:
nym21
2025-06-21 12:43:14 +02:00
parent c9e0f9d985
commit c3ae3cb768
92 changed files with 13601 additions and 12554 deletions

View File

@@ -66,7 +66,7 @@ where
self.mut_pushed().push(value)
}
fn path(&self) -> &Path;
fn path(&self) -> PathBuf;
// ---
@@ -141,7 +141,7 @@ where
#[inline]
fn path_vec(&self) -> PathBuf {
Self::path_vec_(self.path())
Self::path_vec_(&self.path())
}
#[inline]
fn path_vec_(path: &Path) -> PathBuf {
@@ -158,16 +158,6 @@ where
path.join("compressed")
}
#[inline]
fn name_(&self) -> String {
self.path()
.file_name()
.unwrap()
.to_str()
.unwrap()
.to_owned()
}
fn modified_time_(&self) -> Result<Duration> {
Ok(self
.path_vec()