diff --git a/crates/retro_frontend/src/frontend.rs b/crates/retro_frontend/src/frontend.rs index 50b4861..9080dda 100644 --- a/crates/retro_frontend/src/frontend.rs +++ b/crates/retro_frontend/src/frontend.rs @@ -69,7 +69,6 @@ pub struct Frontend { // Framebuffer attributes. TODO: This really should be another struct or something // with members to make dealing with it less annoying. - pub(crate) fb_width: u32, pub(crate) fb_height: u32, pub(crate) fb_pitch: u32, @@ -194,9 +193,10 @@ impl Frontend { // TODO: make this a bit less janky (and use Results) pub fn load_settings(&mut self) { - let path = self.get_config_file_path(); + let path_string = self.get_config_file_path(); + let path: &Path = path_string.as_ref(); - match fs::exists(path.clone()) { + match path.try_exists() { Ok(exists) => { if exists { let data = fs::read_to_string(path).expect("Could not read config"); @@ -209,7 +209,7 @@ impl Frontend { } } Err(e) => { - error!("Can't seem to read {path}: {}", e); + error!("Can't seem to read {}: {}", path.display(), e); } } } diff --git a/crates/retrovnc/src/rfb.rs b/crates/retrovnc/src/rfb.rs index 9b35f17..1718736 100644 --- a/crates/retrovnc/src/rfb.rs +++ b/crates/retrovnc/src/rfb.rs @@ -27,8 +27,6 @@ impl RfbServer { let ip_string = std::ffi::CString::new(config.listen_address.to_string())?; - info!("?? {:?}", ip_string); - let argc = 3; let argv: [*const std::ffi::c_char; 3] = [ b"RfbServer\0".as_ptr() as *const i8,