From bebb45eccf1fa935f92a5954845b4f1070e1c32d Mon Sep 17 00:00:00 2001 From: d3v-null Date: Mon, 23 Sep 2024 21:04:33 +0800 Subject: [PATCH] no QuoteError without cli feature --- Cargo.lock | 2 +- src/error.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 67c2d86..1171b76 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -116,7 +116,7 @@ dependencies = [ [[package]] name = "birli" -version = "0.13.0" +version = "0.14.0" dependencies = [ "aoflagger_sys", "approx", diff --git a/src/error.rs b/src/error.rs index f5bc6e9..ebaadae 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,11 +1,13 @@ //! Errors that can occur in Birli use marlu::{io::error::BadArrayShape, mwalib}; -use shlex::QuoteError; use thiserror::Error; use crate::corrections::{DigitalGainCorrection, PassbandCorrection}; +#[cfg(feature = "cli")] +use shlex::QuoteError; + /// Errors relating to CI #[cfg(feature = "cli")] #[derive(Error, Debug)] @@ -41,6 +43,7 @@ pub enum BirliError { /// Error derived from [`crate::calibration::CalibrationError`] CalibrationError(#[from] crate::calibration::CalibrationError), + #[cfg(feature = "cli")] #[error(transparent)] /// Error derived from [`QuoteError`] QuoteError(#[from] QuoteError),