cleanup features

This commit is contained in:
galister
2024-02-19 18:04:13 +01:00
parent 0eebc206a2
commit 186e023de9
4 changed files with 53 additions and 34 deletions

View File

@@ -53,7 +53,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}
#[cfg(all(feature = "openxr", feature = "openvr"))]
fn auto_run(running: Arc<AtomicBool>) {
use backend::common::BackendError;
@@ -65,7 +64,7 @@ fn auto_run(running: Arc<AtomicBool>) {
};
}
#[cfg(feature = "openxr")]
#[cfg(feature = "openvr")]
{
use crate::backend::openvr::openvr_run;
let Err(BackendError::NotSupported) = openvr_run(running) else {