add default() for Mat and remove lib::mat()
MODIFY
src/hub/manual/core/mat.rs
src/hub/manual/core/mat.rs
@@ -191,6 +191,12 @@ impl fmt::Debug for Mat {
}
}
+impl Default for Mat {
+ fn default() -> Self {
+ Mat::new().unwrap()
+ }
+}
+
mod private {
pub trait Sealed {}

MODIFY
src/lib.rs
src/lib.rs
@@ -14,7 +14,3 @@ mod error;
#[cfg(test)]
mod test;
-
-pub fn mat() -> core::Mat {
- core::Mat::new().unwrap()
-}

add default() for Mat and remove lib::mat()