From bfa94bfa7a98afec2dfeefce4857fba8ece5073a Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Tue, 7 Feb 2023 22:48:34 +0100 Subject: [PATCH] Fix rustc warning about auto deref warning: deref which would be done by auto-deref --> src/wchar_ffi.rs:81:5 | 81 | &*EMPTY_WSTRING | ^^^^^^^^^^^^^^^ help: try this: `&EMPTY_WSTRING` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref = note: `#[warn(clippy::explicit_auto_deref)]` on by default --- fish-rust/src/wchar_ffi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish-rust/src/wchar_ffi.rs b/fish-rust/src/wchar_ffi.rs index 0af4c27ad..cc00c1ea7 100644 --- a/fish-rust/src/wchar_ffi.rs +++ b/fish-rust/src/wchar_ffi.rs @@ -78,7 +78,7 @@ static EMPTY_WSTRING: Lazy> = /// \return a reference to a shared empty wstring. pub fn empty_wstring() -> &'static cxx::CxxWString { - &*EMPTY_WSTRING + &EMPTY_WSTRING } /// Implement Debug for wcharz_t.