diff options
Diffstat (limited to 'src/tty/windows/conpty.rs')
-rw-r--r-- | src/tty/windows/conpty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tty/windows/conpty.rs b/src/tty/windows/conpty.rs index 70ca55fe..45718ed2 100644 --- a/src/tty/windows/conpty.rs +++ b/src/tty/windows/conpty.rs @@ -143,7 +143,7 @@ pub fn new<'a>( let mut startup_info_ex: STARTUPINFOEXW = Default::default(); - let title = options.title.as_ref().map(|w| w.as_str()).unwrap_or("Alacritty"); + let title = options.title.as_ref().map(String::as_str).unwrap_or("Alacritty"); let title = U16CString::from_str(title).unwrap(); startup_info_ex.StartupInfo.lpTitle = title.as_ptr() as LPWSTR; |