codec: impl AsMut for all Context wrappers

This commit is contained in:
Tae-il Lim
2016-12-01 23:52:47 +09:00
committed by meh
parent 4df56b516f
commit 8609619a5d
9 changed files with 72 additions and 0 deletions

View File

@ -134,3 +134,9 @@ impl AsRef<Context> for Decoder {
&self
}
}
impl AsMut<Context> for Decoder {
fn as_mut(&mut self) -> &mut Context {
&mut self.0
}
}