Clippy fixes
This commit is contained in:
parent
e83e2df49d
commit
6bb785be02
@ -1,4 +1,4 @@
|
|||||||
use anyhow::{Context, Result};
|
use anyhow::Result;
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use x11rb::wrapper::ConnectionExt as _;
|
use x11rb::wrapper::ConnectionExt as _;
|
||||||
|
|||||||
@ -27,7 +27,7 @@ pub struct PreparedWallpaper {
|
|||||||
|
|
||||||
/// Convert RGBA byte order to BGRA.
|
/// Convert RGBA byte order to BGRA.
|
||||||
///
|
///
|
||||||
/// Image libraries produce RGBA, but X11 TrueColor visuals typically use
|
/// Image libraries produce RGBA, but X11 `TrueColor` visuals typically use
|
||||||
/// BGRX/BGRA byte order on little-endian systems.
|
/// BGRX/BGRA byte order on little-endian systems.
|
||||||
/// Swap red and blue channels to match the server’s native pixel layout.
|
/// Swap red and blue channels to match the server’s native pixel layout.
|
||||||
/// Without this conversion, colors appear incorrect.
|
/// Without this conversion, colors appear incorrect.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user