Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

Fix unwrap_hard when debug_assertions is set

Joachim Viide484ff7ab4c98
diff --git a/codecs/rotate/rotate.rs b/codecs/rotate/rotate.rs
index 11edcbd8..c69130d9 100644
--- a/codecs/rotate/rotate.rs
+++ b/codecs/rotate/rotate.rs
@@ -18,7 +18,7 @@ impl<T> HardUnwrap<T> for Option<T> {
#[cfg(debug_assertions)]
fn unwrap_hard(self) -> T {
- o.unwrap()
+ self.unwrap()
}
}