mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-26 20:09:29 +00:00
style: Format code in publish_diagnostics method for readability
This commit is contained in:
parent
4b471a3c03
commit
7f10d611c3
1 changed files with 7 additions and 5 deletions
|
@ -44,11 +44,13 @@ impl Store {
|
|||
pub async fn publish_diagnostics(&self, uri: &str, client: &Client) -> Result<()> {
|
||||
if let Some(document) = self.get_document(uri) {
|
||||
let diagnostics = Diagnostics::generate_for_document(document);
|
||||
client.publish_diagnostics(
|
||||
client
|
||||
.publish_diagnostics(
|
||||
Url::parse(uri).unwrap(),
|
||||
diagnostics,
|
||||
Some(document.version),
|
||||
).await;
|
||||
)
|
||||
.await;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue