From 30671b86f7dcb196bdafe94b0020819e7630fb25 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Sun, 1 Dec 2019 03:10:51 +0000 Subject: [PATCH] Fix file name --- src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.rs b/src/server.rs index 60d0619..e078e8a 100644 --- a/src/server.rs +++ b/src/server.rs @@ -126,7 +126,7 @@ pub(crate) async fn run(config: Config) -> Result<()> { zenity.set_width(360); let choice = dialog::Question::new(&format!( "Do you want to accept\n{}\n({} bytes)?", - filename.display(), + filename.file_name().as_ref().unwrap().to_string_lossy(), file_size )) .title("Yodle!") @@ -136,7 +136,7 @@ pub(crate) async fn run(config: Config) -> Result<()> { info!( "{} failed: rejected {}", peer_addr, - filename.file_name().as_ref().unwrap().to_string_lossy() + filename.display(), ); return; }