Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix future clippy lint
needless_borrow
`String` implements `IntoGStr`. So the dereference is not necessary here. ``` warning: the borrowed expression implements the required traits --> src/shell_dlg.rs:77:9 | 77 | &format!("Save changes to '{changed_files}'?"), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("Save changes to '{changed_files}'?")` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default warning: `nvim-gtk` (bin "nvim-gtk") generated 1 warning (run `cargo clippy --fix --bin "nvim-gtk"` to apply 1 suggestion) ```
- Loading branch information
Doesn't really change anything in this case but you could also use
glib::gformat!()
here.Or to be clear, it doesn't change anything here once gtk-rs/gtk-rs-core#1016 is merged.