From af7175f3328c08e39d746c7e7b83c397dd2769bf Mon Sep 17 00:00:00 2001 From: Igor Aleksanov Date: Sun, 1 Nov 2020 13:39:05 +0300 Subject: Make structures order more logical in render.rs --- crates/completion/src/render.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crates/completion') 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 @@ -23,6 +23,11 @@ pub(crate) use crate::render::{ macro_::MacroRender, type_alias::TypeAliasRender, }; +#[derive(Debug)] +pub(crate) struct Render<'a> { + ctx: RenderContext<'a>, +} + #[derive(Debug)] pub(crate) struct RenderContext<'a> { completion: &'a CompletionContext<'a>, @@ -73,11 +78,6 @@ impl<'a> From<&'a CompletionContext<'a>> for RenderContext<'a> { } } -#[derive(Debug)] -pub(crate) struct Render<'a> { - ctx: RenderContext<'a>, -} - impl<'a> Render<'a> { pub(crate) fn new(ctx: RenderContext<'a>) -> Render<'a> { Render { ctx } -- cgit v1.2.3