Skip to content

Commit b501767

Browse files
committed
cargo fmt checks fix
1 parent 90c6fdb commit b501767

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/language_server_protocol.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,11 @@ impl LanguageClient {
497497
match diagnosticsList {
498498
DiagnosticsList::Quickfix => {
499499
//Has to be atomic
500-
self.update(|state| {
500+
self.update(|state| {
501501
let id = state.vim.getqfid(title)?;
502502
if id != -1 {
503-
state.vim.updateqflist(&qflist,title,id)
504-
}else {
503+
state.vim.updateqflist(&qflist, title, id)
504+
} else {
505505
state.vim.addnewqflist(&qflist, title)
506506
}
507507
})?;

src/vim.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,14 @@ impl Vim {
153153
Ok(())
154154
}
155155

156-
pub fn updateqflist(&self, list: &[QuickfixEntry],title: &str, id: i32) -> Fallible<()> {
156+
pub fn updateqflist(&self, list: &[QuickfixEntry], title: &str, id: i32) -> Fallible<()> {
157157
info!("Begin updateqflist");
158158
let parms = json!([[], "r" ,{"title":title,"id":id, "items":list}]);
159159
self.rpcclient.notify("setqflist", parms)?;
160160
Ok(())
161161
}
162162

163-
pub fn addnewqflist(&self, list: &[QuickfixEntry],title: &str) -> Fallible<()> {
163+
pub fn addnewqflist(&self, list: &[QuickfixEntry], title: &str) -> Fallible<()> {
164164
info!("Begin addnewqflist");
165165
let parms = json!([[], " ",{"title":title, "items":list}]);
166166
self.rpcclient.notify("setqflist", parms)?;
@@ -169,7 +169,7 @@ impl Vim {
169169

170170
pub fn getqfid(&self, title: &str) -> Fallible<i32> {
171171
info!("Begin getqfid");
172-
self.rpcclient.call("LSP#GetQfListIdForTitle",title)
172+
self.rpcclient.call("LSP#GetQfListIdForTitle", title)
173173
}
174174

175175
pub fn setqflist(&self, list: &[QuickfixEntry], action: &str, title: &str) -> Fallible<()> {

0 commit comments

Comments
 (0)