mirror of
https://github.com/uutils/awk.git
synced 2026-06-10 16:15:04 -07:00
fix: unblock workspace clippy warnings
This commit is contained in:
@@ -24,4 +24,5 @@ impl Interpreter {
|
||||
}
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
#[allow(dead_code)]
|
||||
enum InterpreterError {}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
// Placeholder: real tests to be added.
|
||||
+2
-1
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user