codec: refactor API

This commit is contained in:
meh
2015-05-16 14:45:21 +02:00
parent 8bdb50ebaf
commit 6090985707
6 changed files with 292 additions and 126 deletions

View File

@ -19,7 +19,7 @@ impl<'a> Codec<'a> {
Codec { ptr: ptr, _marker: PhantomData }
}
pub fn open(&self) -> Result<Opened<'a>, Error> {
pub fn open(&self) -> Result<Opened, Error> {
Context::new().open(self)
}