From 3c0cdbfa610d4349775c6ae524aeaad45f82e122 Mon Sep 17 00:00:00 2001 From: Shubham Singh Date: Tue, 19 Dec 2023 03:32:42 +0530 Subject: [PATCH] Removed unused function `read_string` --- src/utils/read_files.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/utils/read_files.rs b/src/utils/read_files.rs index 58de6d9..36e7284 100644 --- a/src/utils/read_files.rs +++ b/src/utils/read_files.rs @@ -13,12 +13,3 @@ pub fn read_bytes>(file_path: P) -> Result> { Ok(bytes) } - -/// This function will be used to read string files (.txt, .rs etc etc ) -pub fn read_string>(file_path: P) -> Result { - let mut file: std::fs::File = OpenOptions::new().read(true).open(file_path)?; - let mut content: String = String::new(); - file.read_to_string(&mut content)?; - - Ok(content) -}