chore: format

This commit is contained in:
Gabriele Musco 2023-09-24 10:17:21 +02:00
parent 4172c351e1
commit bfa1b32772
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE
3 changed files with 5 additions and 6 deletions

View file

@ -351,9 +351,7 @@ impl SimpleComponent for App {
self.xr_devices = XRDevice::merge(&self.xr_devices, &n_devs);
self.main_view
.sender()
.emit(MainViewMsg::UpdateDevices(
self.xr_devices.clone(),
));
.emit(MainViewMsg::UpdateDevices(self.xr_devices.clone()));
} else if let Some(tracker) =
XRDevice::generic_tracker_from_log_row(parsed.message.as_str())
{

View file

@ -1,10 +1,11 @@
use std::env;
use lazy_static::lazy_static;
use std::env;
fn get_ff_libmonado_device_enumeration_enabled() -> bool {
env::var("ENVISION_FF_USE_LIBMONADO").unwrap_or_default() == "1"
}
lazy_static! {
pub static ref FF_LIBMONADO_DEVICE_ENUMERATION_ENABLED: bool = get_ff_libmonado_device_enumeration_enabled();
pub static ref FF_LIBMONADO_DEVICE_ENUMERATION_ENABLED: bool =
get_ff_libmonado_device_enumeration_enabled();
}

View file

@ -6,6 +6,7 @@ pub mod debug_view;
pub mod devices_box;
pub mod factories;
pub mod fbt_config_editor;
pub mod feature_flags;
pub mod install_wivrn_box;
pub mod job_worker;
pub mod libsurvive_setup_window;
@ -16,4 +17,3 @@ pub mod profile_editor;
pub mod steam_launch_options_box;
pub mod util;
pub mod wivrn_conf_editor;
pub mod feature_flags;