mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
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:
parent
a16e2ecb1b
commit
bfa94bfa7a
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue