mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
Make structures order more logical in render.rs
This commit is contained in:
parent
97a504805d
commit
af7175f332
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user