We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d0d162 commit 1a1ccf2Copy full SHA for 1a1ccf2
1 file changed
src-tauri/src/lib.rs
@@ -1,6 +1,6 @@
1
// FIXME: actually refactor errors instead
2
#![allow(clippy::result_large_err)]
3
-use std::{fmt, path::PathBuf};
+use std::{fmt, path::{Path, PathBuf}};
4
// #[cfg(not(windows))]
5
// use std::{
6
// fs::{set_permissions, Permissions},
@@ -85,7 +85,7 @@ pub fn app_data_dir() -> Option<PathBuf> {
85
/// Ensures path has appropriate permissions set (dg25-28):
86
/// - 700 for directories
87
/// - 600 for files
88
-pub fn set_perms(path: &PathBuf) {
+pub fn set_perms(_path: &Path) {
89
90
91
// {
0 commit comments