diff --git a/nalgebra-sparse/src/ops/mod.rs b/nalgebra-sparse/src/ops/mod.rs index ef6a2497..abf31069 100644 --- a/nalgebra-sparse/src/ops/mod.rs +++ b/nalgebra-sparse/src/ops/mod.rs @@ -15,7 +15,7 @@ pub enum Op { impl Op { /// TODO pub fn inner_ref(&self) -> &T { - self.as_ref().unwrap() + self.as_ref().into_inner() } /// TODO @@ -43,7 +43,7 @@ impl Op { } /// TODO - pub fn unwrap(self) -> T { + pub fn into_inner(self) -> T { match self { Op::NoOp(obj) | Op::Transpose(obj) => obj, }