Skip to content

Commit e28a81e

Browse files
fix: newly occurring warnings since rust 1.92
1 parent 67c1860 commit e28a81e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

alvr/client_openxr/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ fn create_session(
125125
xr::FrameWaiter,
126126
xr::FrameStream<xr::OpenGlEs>,
127127
) {
128+
#[allow(unreachable_code)]
128129
unsafe {
129130
xr_instance
130131
.create_session(xr_system, &graphics::session_create_info(graphics_context))

alvr/launcher/src/actions.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,9 @@ async fn install_server(
281281
}
282282

283283
if let Some(session_version) = session_version {
284-
// This code is tailored for Windows and is only hit on Windows
285-
assert!(cfg!(windows));
284+
if !cfg!(windows) {
285+
unreachable!("The session copying code should only be hit on Windows!")
286+
}
286287

287288
for inst in get_installations() {
288289
if inst.version == session_version {

alvr/xtask/src/packaging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub enum ReleaseFlavor {
1717
pub fn generate_licenses() -> String {
1818
let sh = Shell::new().unwrap();
1919

20-
cmd!(sh, "cargo install cargo-about --version 0.6.4")
20+
cmd!(sh, "cargo install cargo-about --version 0.8.4 --locked")
2121
.run()
2222
.unwrap();
2323

0 commit comments

Comments
 (0)