From c130110987326c3e4902fb4f40d2657119f4c41b Mon Sep 17 00:00:00 2001 From: R Aadarsh Date: Tue, 21 Oct 2025 17:52:39 +0530 Subject: [PATCH] Remove calls to `lock` and `unwrap` as they are no longer needed --- crates/encodings_ui/src/selectors.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/crates/encodings_ui/src/selectors.rs b/crates/encodings_ui/src/selectors.rs index f4edecd0428d1ff893422ee929119a1cf410d6fa..879cadba19de10315280d86a9032741858d0de57 100644 --- a/crates/encodings_ui/src/selectors.rs +++ b/crates/encodings_ui/src/selectors.rs @@ -487,8 +487,6 @@ pub mod encoding { workspace .encoding_options .encoding - .lock() - .unwrap() .set(encoding_from_name(¤t_selection)); *workspace.encoding_options.force.get_mut() = false; @@ -535,12 +533,7 @@ pub mod encoding { encoding_from_name(self.matches[self.current_selection].string.as_str()); let open_task = workspace.update(cx, |workspace, cx| { - workspace - .encoding_options - .encoding - .lock() - .unwrap() - .set(encoding); + workspace.encoding_options.encoding.set(encoding); workspace.open_abs_path(path, OpenOptions::default(), window, cx) });