A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/lsp.rs')
-rw-r--r--src/lsp.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/lsp.rs b/src/lsp.rs
index b80a37e..5b8158b 100644
--- a/src/lsp.rs
+++ b/src/lsp.rs
@@ -469,10 +469,7 @@ impl Client {
&'static self,
f: &Path,
) -> impl Future<
- Output = Result<
- Option<Vec<TextEdit>>,
- RequestError<Formatting>,
- >,
+ Output = Result<Option<Vec<TextEdit>>, RequestError<Formatting>>,
> {
self.request::<lsp_request!("textDocument/formatting")>(
&DocumentFormattingParams {
@@ -489,8 +486,14 @@ impl Client {
},
)
.unwrap()
- .0.map(|x| {
- x.map(|x|x.map(|mut x| { x.sort_tedits(); x }))
+ .0
+ .map(|x| {
+ x.map(|x| {
+ x.map(|mut x| {
+ x.sort_tedits();
+ x
+ })
+ })
})
}
pub fn rq_semantic_tokens(