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.
merge-requests/23/head
Nefo Fortressia 2021-12-18 17:34:27 +07:00
parent b53915afa0
commit e0d353a10b
Signed by: fortressia
GPG Key ID: 6D7972CC76174995
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ impl FileImplementedEditor for super::EchidnaWindow {
notebook.prepend_closable_page( notebook.prepend_closable_page(
&editor_page, &editor_page,
Some(&Label::new(Some( Some(&Label::new(Some(
&file_location file_location
.path() .path()
.expect("The file's path is missing") .expect("The file's path is missing")
.file_name() .file_name()