summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/color.rs2
-rw-r--r--core/src/mouse/click.rs4
-rw-r--r--core/src/window/icon.rs2
3 files changed, 3 insertions, 5 deletions
diff --git a/core/src/color.rs b/core/src/color.rs
index 1392f28b..0e8b7475 100644
--- a/core/src/color.rs
+++ b/core/src/color.rs
@@ -1,7 +1,7 @@
#[cfg(feature = "palette")]
use palette::rgb::{Srgb, Srgba};
-/// A color in the sRGB color space.
+/// A color in the `sRGB` color space.
#[derive(Debug, Clone, Copy, PartialEq, Default)]
pub struct Color {
/// Red component, 0.0 - 1.0
diff --git a/core/src/mouse/click.rs b/core/src/mouse/click.rs
index 4a7d796c..240e5c64 100644
--- a/core/src/mouse/click.rs
+++ b/core/src/mouse/click.rs
@@ -69,8 +69,6 @@ impl Click {
};
self.position == new_position
- && duration
- .map(|duration| duration.as_millis() <= 300)
- .unwrap_or(false)
+ && duration.is_some_and(|duration| duration.as_millis() <= 300)
}
}
diff --git a/core/src/window/icon.rs b/core/src/window/icon.rs
index 2fc48e3b..5ef0eed7 100644
--- a/core/src/window/icon.rs
+++ b/core/src/window/icon.rs
@@ -3,7 +3,7 @@ use crate::Size;
use std::mem;
-/// Builds an [`Icon`] from its RGBA pixels in the sRGB color space.
+/// Builds an [`Icon`] from its RGBA pixels in the `sRGB` color space.
pub fn from_rgba(
rgba: Vec<u8>,
width: u32,