Skip to content

Commit dd99641

Browse files
committed
fix: resolve clippy warnings in current_target cfg blocks
1 parent 342f694 commit dd99641

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/compiler/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,12 @@ fn current_target() -> Result<&'static str> {
222222
return Ok("aarch64-apple-darwin");
223223
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
224224
return Ok("x86_64-pc-windows-msvc");
225-
#[allow(unreachable_code)]
225+
#[cfg(not(any(
226+
all(target_os = "linux", target_arch = "x86_64"),
227+
all(target_os = "linux", target_arch = "aarch64"),
228+
all(target_os = "macos", target_arch = "x86_64"),
229+
all(target_os = "macos", target_arch = "aarch64"),
230+
all(target_os = "windows", target_arch = "x86_64"),
231+
)))]
226232
anyhow::bail!("Unsupported platform for automatic tectonic installation")
227233
}

0 commit comments

Comments
 (0)