tamer: xir::escape::CachingEscaper: allow(dead_code) for feature-flagged code

For now, until this feature flag is removed, so that we do not see warnings
when the flag is off.
main
Mike Gerwitz 2022-03-10 10:02:29 -05:00
parent 76b16fed09
commit 74ddc77adb
1 changed files with 4 additions and 0 deletions

View File

@ -204,6 +204,8 @@ pub struct CachingEscaper<S: Escaper> {
}
impl<S: Escaper> CachingEscaper<S> {
// TODO: remove allow along with wip-xmlo-xir-reader
#[allow(dead_code)]
pub fn new(inner: S) -> Self {
// We know we'll encounter more than the statically allocated
// symbols,
@ -224,6 +226,8 @@ impl<S: Escaper> CachingEscaper<S> {
}
}
// TODO: remove allow along with wip-xmlo-xir-reader
#[allow(dead_code)]
pub fn into_inner(self) -> S {
self.inner
}