From ea6c1451b42bccfdad1f056ab1f51e250c3105c2 Mon Sep 17 00:00:00 2001 From: Andreas Longva Date: Wed, 6 Jan 2021 13:10:43 +0100 Subject: [PATCH] Rename Op::unwrap to Op::into_inner --- nalgebra-sparse/src/ops/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }