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
This commit is contained in:
Johannes Altmanninger 2023-02-07 22:48:34 +01:00
parent a16e2ecb1b
commit bfa94bfa7a

View file

@ -78,7 +78,7 @@ static EMPTY_WSTRING: Lazy<cxx::UniquePtr<cxx::CxxWString>> =
/// \return a reference to a shared empty wstring.
pub fn empty_wstring() -> &'static cxx::CxxWString {
&*EMPTY_WSTRING
&EMPTY_WSTRING
}
/// Implement Debug for wcharz_t.