1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-19 02:37:51 +03:00

windows: fix warning; mut not required here

This commit is contained in:
Wez Furlong 2023-04-08 11:12:38 -07:00
parent 62256c80b4
commit 9e03d24402
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -1049,7 +1049,7 @@ fn no_native_title_bar(decorations: WindowDecorations) -> bool {
unsafe fn wm_nccalcsize(hwnd: HWND, _msg: UINT, wparam: WPARAM, lparam: LPARAM) -> Option<LRESULT> {
let inner = rc_from_hwnd(hwnd)?;
let mut inner = match inner.try_borrow_mut() {
let inner = match inner.try_borrow() {
Ok(inner) => inner,
Err(_) => {
// We've been called recursively and the upper levels