Skip to content

Commit

Permalink
no QuoteError without cli feature
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Sep 23, 2024
1 parent 2ae32c7 commit bebb45e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit bebb45e

Please sign in to comment.