Fix clippy issues on stable
This commit is contained in:
parent
e1b7fda409
commit
930df0ec45
36 changed files with 68 additions and 76 deletions
|
|
@ -522,7 +522,7 @@ impl<T: 'static> EventLoop<T> {
|
|||
// Acknowledge the latest resize event.
|
||||
if let Some((w, h)) = event_state.resize_opt.take() {
|
||||
window
|
||||
.write(format!("S,{},{}", w, h).as_bytes())
|
||||
.write(format!("S,{w},{h}").as_bytes())
|
||||
.expect("failed to acknowledge resize");
|
||||
|
||||
// Require redraw after resize.
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ impl RedoxSocket {
|
|||
}
|
||||
|
||||
fn orbital(properties: &WindowProperties<'_>) -> syscall::Result<Self> {
|
||||
Self::open_raw(&format!("{}", properties))
|
||||
Self::open_raw(&format!("{properties}"))
|
||||
}
|
||||
|
||||
// Paths should be checked to ensure they are actually sockets and not normal files. If a
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ impl Window {
|
|||
//TODO: adjust for window decorations
|
||||
let (x, y): (i32, i32) = position.to_physical::<i32>(self.scale_factor()).into();
|
||||
self.window_socket
|
||||
.write(format!("P,{},{}", x, y).as_bytes())
|
||||
.write(format!("P,{x},{y}").as_bytes())
|
||||
.expect("failed to set position");
|
||||
}
|
||||
|
||||
|
|
@ -206,7 +206,7 @@ impl Window {
|
|||
pub fn set_inner_size(&self, size: Size) {
|
||||
let (w, h): (u32, u32) = size.to_physical::<u32>(self.scale_factor()).into();
|
||||
self.window_socket
|
||||
.write(format!("S,{},{}", w, h).as_bytes())
|
||||
.write(format!("S,{w},{h}").as_bytes())
|
||||
.expect("failed to set size");
|
||||
}
|
||||
|
||||
|
|
@ -236,7 +236,7 @@ impl Window {
|
|||
#[inline]
|
||||
pub fn set_title(&self, title: &str) {
|
||||
self.window_socket
|
||||
.write(format!("T,{}", title).as_bytes())
|
||||
.write(format!("T,{title}").as_bytes())
|
||||
.expect("failed to set title");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue