summaryrefslogtreecommitdiffstats
path: root/core/src/window
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/window')
-rw-r--r--core/src/window/icon.rs2
-rw-r--r--core/src/window/redraw_request.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/window/icon.rs b/core/src/window/icon.rs
index 31868ecf..2fc48e3b 100644
--- a/core/src/window/icon.rs
+++ b/core/src/window/icon.rs
@@ -49,7 +49,7 @@ impl Icon {
}
#[derive(Debug, thiserror::Error)]
-/// An error produced when using [`Icon::from_rgba`] with invalid arguments.
+/// An error produced when using [`from_rgba`] with invalid arguments.
pub enum Error {
/// Produced when the length of the `rgba` argument isn't divisible by 4, thus `rgba` can't be
/// safely interpreted as 32bpp RGBA pixels.
diff --git a/core/src/window/redraw_request.rs b/core/src/window/redraw_request.rs
index 3b4f0fd3..8a59e83c 100644
--- a/core/src/window/redraw_request.rs
+++ b/core/src/window/redraw_request.rs
@@ -13,7 +13,7 @@ pub enum RedrawRequest {
#[cfg(test)]
mod tests {
use super::*;
- use std::time::{Duration, Instant};
+ use crate::time::{Duration, Instant};
#[test]
fn ordering() {