Skip to content

Commit e15a496

Browse files
hoshinolinaslp
authored andcommitted
Clippy fixes in X11 code
Signed-off-by: Asahi Lina <[email protected]>
1 parent dd62577 commit e15a496

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/muvm/src/bin/muvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ fn main() -> Result<()> {
301301

302302
// Forward the native X11 display into the guest as a socket
303303
if let Ok(x11_display) = env::var("DISPLAY") {
304-
if let Some(x11_display) = x11_display.strip_prefix(":") {
304+
if let Some(x11_display) = x11_display.strip_prefix(':') {
305305
let socket_path = Path::new("/tmp/.X11-unix/").join(format!("X{}", x11_display));
306306
if socket_path.exists() {
307307
let socket_path = CString::new(

crates/muvm/src/guest/x11.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ where
2121
Err(_) => return Ok(()),
2222
};
2323

24-
if !host_display.starts_with(":") {
24+
if !host_display.starts_with(':') {
2525
return Err(anyhow!("Invalid host DISPLAY"));
2626
}
2727
let host_display = &host_display[1..];

0 commit comments

Comments
 (0)