Make structures order more logical in render.rs

This commit is contained in:
Igor Aleksanov 2020-11-01 13:39:05 +03:00
parent 97a504805d
commit af7175f332

View File

@ -23,6 +23,11 @@
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 @@ fn from(ctx: &'a CompletionContext<'a>) -> 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 }