Enable clippy::useless_format
(#8758)
This PR enables the [`clippy::useless_format`](https://rust-lang.github.io/rust-clippy/master/index.html#/useless_format) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
373e18bc88
commit
33790b81fc
12 changed files with 70 additions and 46 deletions
|
@ -272,10 +272,7 @@ impl NeovimConnection {
|
|||
|
||||
#[cfg(feature = "neovim")]
|
||||
pub async fn exec(&mut self, value: &str) {
|
||||
self.nvim
|
||||
.command_output(format!("{}", value).as_str())
|
||||
.await
|
||||
.unwrap();
|
||||
self.nvim.command_output(value).await.unwrap();
|
||||
|
||||
self.data.push_back(NeovimData::Exec {
|
||||
command: value.to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue