agate

Simple gemini server for static files
git clone https://github.com/mbrubeck/agate.git
Log | Files | Refs | README

commit 16d05c73a0c33e55e6732cfdcb75599557461b3e
parent 1a537d630fa450271b4a769b8562e32c3e2b11c2
Author: Johann150 <johann.galle@protonmail.com>
Date:   Sat, 27 Mar 2021 20:24:19 +0100

resolve clippy warning

Diffstat:
Msrc/metadata.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/metadata.rs b/src/metadata.rs @@ -106,7 +106,7 @@ impl FileOptions { /// (Re)reads a specified sidecar file. /// This function will allways try to read the file, even if it is current. - fn read_database(&mut self, db: &PathBuf) { + fn read_database(&mut self, db: &Path) { log::debug!("reading database {:?}", db); let mut ini = Ini::new_cs(); @@ -134,7 +134,7 @@ impl FileOptions { let header = header.unwrap_or_default(); // generate workspace-relative path - let mut path = db.clone(); + let mut path = db.to_path_buf(); path.pop(); path.push(rel_path);