diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 5069ad8..c5de67a 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -598,7 +598,11 @@ fn migrate_data_dir( #[tauri::command] fn read_text_file(app: AppHandle, path: String) -> Result { let p = std::path::PathBuf::from(&path); - if !app.try_fs_scope().map(|scope| scope.is_allowed(&p)).unwrap_or(false) { + if !app + .try_fs_scope() + .map(|scope| scope.is_allowed(&p)) + .unwrap_or(false) + { return Err("path not authorized".into()); } let ext = p