Use new Unique API (#346)

Change Unique to use `new_unchecked`. Fixes #345.
This commit is contained in:
Tim Crawford
2017-08-05 00:47:15 -04:00
committed by Philipp Oppermann
parent e54cfa4378
commit 2ebd4ed954
4 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ pub struct Mapper {
impl Mapper {
pub unsafe fn new() -> Mapper {
Mapper { p4: Unique::new(table::P4) }
Mapper { p4: Unique::new_unchecked(table::P4) }
}
pub fn p4(&self) -> &Table<Level4> {