From abd87d6eea300820b89cb6c6390f8784fa6836f5 Mon Sep 17 00:00:00 2001 From: rasul Date: Wed, 30 Oct 2019 16:02:42 -0500 Subject: [PATCH] remove identical conversion --- src/apps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.rs b/src/apps.rs index 63f46fe..06a798e 100644 --- a/src/apps.rs +++ b/src/apps.rs @@ -14,7 +14,7 @@ pub struct Apps { impl Apps { pub fn load(p: PathBuf) -> Result { - let path: String = String::from(p.display().to_string()); + let path: String = p.display().to_string(); match File::open(p) { Ok(mut file) => { let mut buf = String::new();