fix: unblock workspace clippy warnings

This commit is contained in:
Sylvestre Ledru
2026-04-30 19:20:23 +02:00
parent 56e4b26ea6
commit d4539f90f6
4 changed files with 4 additions and 2 deletions
+1
View File
@@ -24,4 +24,5 @@ impl Interpreter {
}
#[derive(Debug, thiserror::Error)]
#[allow(dead_code)]
enum InterpreterError {}
-1
View File
@@ -3,7 +3,6 @@
// For the full copyright and license information, please view the LICENSE
// files that was distributed with this source code.
#[cfg(test)]
mod tests;
+1
View File
@@ -0,0 +1 @@
// Placeholder: real tests to be added.
+2 -1
View File
@@ -10,7 +10,7 @@ use std::process::exit;
use color_eyre::config::HookBuilder;
use rustix::process::{EXIT_FAILURE, EXIT_SUCCESS};
use tracing_error::ErrorLayer;
use tracing_subscriber::{EnvFilter, prelude::*};
use tracing_subscriber::prelude::*;
type ExitCode = i32;
@@ -60,6 +60,7 @@ pub fn ensure_consistent_panic<T>(f: impl UnwindSafe + FnOnce() -> T) -> T {
}
/// Exits with a custom exit code or libc's codes, as per POSIX.
#[allow(dead_code)]
pub fn exit_with(res: Result<Option<impl Into<ExitCode>>, impl Display + Debug>) -> ! {
let code = match res {
Ok(Some(x)) => x.into(),