From 2bbba82448d378dbc8ace47995ff53b95d610c6e Mon Sep 17 00:00:00 2001 From: Sam Denty Date: Wed, 3 Feb 2021 23:02:41 +0000 Subject: [PATCH] rename max_size --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/icon_size/mod.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 70ae4d1..e014471 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1527,7 +1527,7 @@ checksum = "fa8f3741c7372e75519bd9346068370c9cdaabcc1f9599cbcf2a2719352286b7" [[package]] name = "site_icons" -version = "0.1.5" +version = "0.1.6" dependencies = [ "byteorder", "clap", diff --git a/Cargo.toml b/Cargo.toml index b13446a..b82356e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "site_icons" -version = "0.1.5" +version = "0.1.6" authors = ["Sam Denty "] edition = "2018" license = "GPL-3.0" diff --git a/src/icon_size/mod.rs b/src/icon_size/mod.rs index 9de9f6a..398f172 100644 --- a/src/icon_size/mod.rs +++ b/src/icon_size/mod.rs @@ -34,14 +34,14 @@ impl IconSize { Self { width, height } } - pub fn max_size(&self) -> u32 { + pub fn max_rect(&self) -> u32 { cmp::max(self.width, self.height) } } impl Ord for IconSize { fn cmp(&self, other: &Self) -> Ordering { - other.max_size().cmp(&self.max_size()) + other.max_rect().cmp(&self.max_rect()) } }