From acc239704a7cc8865dc6ba5c1ce4d1560ff01f10 Mon Sep 17 00:00:00 2001 From: Paul Nettleton Date: Mon, 20 May 2024 16:58:33 -0500 Subject: [PATCH] fix: correct use of `eyre::bail!()` on non-Unix platforms In `Cli::file_path()`, `color_eyre::eyre::bail!()` is used to return an error on non-Unix platforms if the `podlet --unit-directory` option is used. The `eyre` import was removed, so this resulted in a compiler error before. Signed-off-by: Paul Nettleton --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index 3acd61c..cadd2a4 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -211,7 +211,7 @@ impl Cli { } #[cfg(not(unix))] - eyre::bail!("Cannot get Podman unit directory on non-unix system"); + color_eyre::eyre::bail!("Cannot get Podman unit directory on non-Unix system"); } else if let Some(Some(path)) = &self.file { if path.is_dir() { path.clone()