mirror of
https://github.com/samsonjs/agate.git
synced 2026-03-25 09:05:50 +00:00
resolve clippy warning
This commit is contained in:
parent
1a537d630f
commit
16d05c73a0
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue