From 3d0f8a3ff6435179e55cb8d7de2dbd2560adf3b4 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Sat, 16 Jul 2022 16:39:26 -0700 Subject: [PATCH] remove unused fs --- src-tauri/src/file_helpers.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/file_helpers.rs b/src-tauri/src/file_helpers.rs index 0f84f70..6493e5c 100644 --- a/src-tauri/src/file_helpers.rs +++ b/src-tauri/src/file_helpers.rs @@ -1,6 +1,6 @@ use std::fs; use file_diff::diff; -use std::{fs, io::{Read, Write}}; +use std::{io::{Read, Write}}; #[tauri::command] pub fn rename(path: String, new_name: String) { @@ -99,6 +99,7 @@ pub fn delete_file(path: String) -> bool { false } +#[tauri::command] pub fn read_file(path: String) -> String { let mut file = match fs::File::open(path) { Ok(file) => file,