From e0d353a10bb5fbcfc5afdf2efcf5d31c6a761f2a Mon Sep 17 00:00:00 2001 From: Nefo Fortressia Date: Sat, 18 Dec 2021 17:34:27 +0700 Subject: [PATCH] refactor: remove double pointer in setting a file's tab title This is because the file name is an &OsStr converted to &str and thus already a pointer. --- src/components/window/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/window/file.rs b/src/components/window/file.rs index cef7e9f..a9e06e6 100644 --- a/src/components/window/file.rs +++ b/src/components/window/file.rs @@ -67,7 +67,7 @@ impl FileImplementedEditor for super::EchidnaWindow { notebook.prepend_closable_page( &editor_page, Some(&Label::new(Some( - &file_location + file_location .path() .expect("The file's path is missing") .file_name()