diff options
author | Igor Aleksanov <[email protected]> | 2020-11-01 10:39:05 +0000 |
---|---|---|
committer | Igor Aleksanov <[email protected]> | 2020-11-03 07:16:35 +0000 |
commit | af7175f3328c08e39d746c7e7b83c397dd2769bf (patch) | |
tree | 240cc852adb6ba689570da61db609bc74a9c8266 /crates/completion | |
parent | 97a504805d4b0cf8b48bc5052453b2b2f3298449 (diff) |
Make structures order more logical in render.rs
Diffstat (limited to 'crates/completion')
-rw-r--r-- | crates/completion/src/render.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/completion/src/render.rs b/crates/completion/src/render.rs index 28731e04f..d78877421 100644 --- a/crates/completion/src/render.rs +++ b/crates/completion/src/render.rs | |||
@@ -24,6 +24,11 @@ pub(crate) use crate::render::{ | |||
24 | }; | 24 | }; |
25 | 25 | ||
26 | #[derive(Debug)] | 26 | #[derive(Debug)] |
27 | pub(crate) struct Render<'a> { | ||
28 | ctx: RenderContext<'a>, | ||
29 | } | ||
30 | |||
31 | #[derive(Debug)] | ||
27 | pub(crate) struct RenderContext<'a> { | 32 | pub(crate) struct RenderContext<'a> { |
28 | completion: &'a CompletionContext<'a>, | 33 | completion: &'a CompletionContext<'a>, |
29 | } | 34 | } |
@@ -73,11 +78,6 @@ impl<'a> From<&'a CompletionContext<'a>> for RenderContext<'a> { | |||
73 | } | 78 | } |
74 | } | 79 | } |
75 | 80 | ||
76 | #[derive(Debug)] | ||
77 | pub(crate) struct Render<'a> { | ||
78 | ctx: RenderContext<'a>, | ||
79 | } | ||
80 | |||
81 | impl<'a> Render<'a> { | 81 | impl<'a> Render<'a> { |
82 | pub(crate) fn new(ctx: RenderContext<'a>) -> Render<'a> { | 82 | pub(crate) fn new(ctx: RenderContext<'a>) -> Render<'a> { |
83 | Render { ctx } | 83 | Render { ctx } |