]> git.lizzy.rs Git - rust.git/commit
Merge #6351
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Mon, 26 Oct 2020 19:06:34 +0000 (19:06 +0000)
committerGitHub <noreply@github.com>
Mon, 26 Oct 2020 19:06:34 +0000 (19:06 +0000)
commitd10e2a04c8a5ff157acd95bc7458d36d9f396390
treefb68b034d7e56053e5d1b4302e2996f64b024e11
parentd01e412eb1572676a33ad145f3370a7157dbc9df
parent357bf0cedc658b7c95952324fda4bbe7f41a3e6a
Merge #6351

6351: Organized completions r=popzxc a=popzxc

This PR continues the work on refactoring of the `completions` crate.

In this episode:

- Actual completions methods are encapsulated into `completions` module, so they aren't mixed with the rest of the code.
- Name duplication was removed (`complete_attribute` => `completions::attribute`, `completion_context` => `context`).
- `Completions` structure was moved from `item` module to the `completions`.
- `presentation` module was removed, as it was basically a module with `impl` for `Completions`.
- Code approaches were a bit unified here and there.

Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>