fix moved val compile error

This commit is contained in:
Benjamin Morrison 2021-10-24 02:20:45 -04:00
parent 91b0ee7aff
commit 5d46c86e08
Signed by: gbmor
GPG Key ID: 8F192E4720BB0DAC
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ pub fn display() -> error::Result<()> {
{
let homedir = env::var("HOME")?;
let localdest = format!("{}/.clinte.json", homedir);
fs::copy(db::PATH, localdest)?;
fs::copy(db::PATH, localdest.clone())?;
let mut perms = fs::metadata(&localdest)?.permissions();
perms.set_mode(0o644);
}