removes default implementation of info

This commit is contained in:
2024-05-12 16:07:43 +02:00
parent 2bc050bb44
commit 335f7e7d8c
2 changed files with 5 additions and 3 deletions
+2 -3
View File
@@ -2,9 +2,8 @@
//! If two images are (almost) the same, their descriptions will be the same.
pub trait Descriptor {
fn info(&self) -> String {
"Descriptor".to_string()
}
/// Print the name of the descriptor,
fn info(&self) -> String;
fn resize(&self, img: &image::DynamicImage) -> image::DynamicImage {
img.grayscale().thumbnail_exact(8, 8)
}