summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 228699c..661eec7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -24,7 +24,7 @@ where
{
fn inspect(self, f: F) -> Self {
if let Some(ref o) = self.as_ref() {
- (f)(&o);
+ (f)(o);
}
self
@@ -38,7 +38,7 @@ where
{
fn inspect(&self, f: F) {
if let Some(ref o) = self {
- (f)(&o);
+ (f)(o);
}
}
}