1 2 3 4 5 6 7 8 9 10 11 12
use ntsync::NtSync; use rstest::fixture; #[fixture] pub fn instance() -> NtSync { match NtSync::new() { Err(error) => { panic!("Failed to open Device: {error}") }, Ok(ntsync) => ntsync, } }