fix(export): make Escape struct field public

This commit is contained in:
PoiScript 2019-03-11 00:49:57 +08:00
parent e1469b6794
commit 355ea8b46e

View file

@ -209,7 +209,7 @@ pub trait HtmlHandler<W: Write> {
} }
} }
pub struct Escape<'a>(&'a str); pub struct Escape<'a>(pub &'a str);
impl<'a> fmt::Display for Escape<'a> { impl<'a> fmt::Display for Escape<'a> {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {