mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
minor: correct some typos
This commit is contained in:
parent
b0be2967cc
commit
ba2910a3a7
20 changed files with 402 additions and 205 deletions
|
@ -245,7 +245,7 @@ As proper cursor positioning is raison d'être for `onEnter`, it uses `SnippetTe
|
|||
|
||||
* How to deal with synchronicity of the request?
|
||||
One option is to require the client to block until the server returns the response.
|
||||
Another option is to do a OT-style merging of edits from client and server.
|
||||
Another option is to do a operational transforms style merging of edits from client and server.
|
||||
A third option is to do a record-replay: client applies heuristic on enter immediately, then applies all user's keypresses.
|
||||
When the server is ready with the response, the client rollbacks all the changes and applies the recorded actions on top of the correct response.
|
||||
* How to deal with multiple carets?
|
||||
|
|
|
@ -99,14 +99,7 @@ Including a description and GIF suitable for the changelog means less work for t
|
|||
|
||||
## Clippy
|
||||
|
||||
We don't enforce Clippy.
|
||||
A number of default lints have high false positive rate.
|
||||
Selectively patching false-positives with `allow(clippy)` is probably worse than entirely disabling a problematic lint.
|
||||
There's a `cargo lint` command which runs a subset of low-FPR lints.
|
||||
Careful tweaking of `lint` is welcome.
|
||||
Of course, applying Clippy suggestions is welcome as long as they indeed improve the code.
|
||||
|
||||
**Rationale:** see [rust-lang/clippy#5537](https://github.com/rust-lang/rust-clippy/issues/5537).
|
||||
We use Clippy to improve the code, but if some lints annoy you, allow them in the [Cargo.toml](../../Cargo.toml) [workspace.lints.clippy] section.
|
||||
|
||||
# Code
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue