Move Escape type to render module
This commit is contained in:
parent
b1aa300884
commit
6a8ce2cf34
2 changed files with 7 additions and 8 deletions
|
@ -5,13 +5,7 @@ use syntax::parse::parser::Parser as RustParser;
|
|||
use syntax::parse::token;
|
||||
use syntax::ptr::P;
|
||||
|
||||
use super::render::Renderer;
|
||||
|
||||
#[derive(Copy, PartialEq, Show)]
|
||||
pub enum Escape {
|
||||
PassThru,
|
||||
Escape,
|
||||
}
|
||||
use super::render::{Escape, Renderer};
|
||||
|
||||
macro_rules! guard {
|
||||
($e:expr) => (if !$e { return false; })
|
||||
|
|
|
@ -5,7 +5,12 @@ use syntax::parse::token;
|
|||
use syntax::ptr::P;
|
||||
|
||||
use maud;
|
||||
use super::parse::Escape;
|
||||
|
||||
#[derive(Copy, PartialEq, Show)]
|
||||
pub enum Escape {
|
||||
PassThru,
|
||||
Escape,
|
||||
}
|
||||
|
||||
pub struct Renderer<'cx, 's: 'cx, 'o> {
|
||||
pub cx: &'cx mut ExtCtxt<'s>,
|
||||
|
|
Loading…
Add table
Reference in a new issue