Skip to content

Commit

Permalink
Fix cargo test with --no-default-features
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Aug 13, 2024
1 parent 9f468f7 commit c618f16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
//!
//!
//! ## Examples
//! ```rust
#![cfg_attr(feature = "ndarray", doc = "```rust")]
#![cfg_attr(not(feature = "ndarray"), doc = "```rust,ignore")]
//! # use std::{path::PathBuf, sync::Arc};
//! use zarrs::array::{ArrayBuilder, DataType, FillValue, ZARR_NAN_F32};
//! # #[cfg(feature = "gzip")]
Expand Down
2 changes: 1 addition & 1 deletion src/metadata/v2/codec/zfpy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub fn codec_zfpy_v2_numcodecs_to_v3(

#[cfg(test)]
mod tests {
use crate::array::codec::ZfpCodecConfigurationV1;
use crate::metadata::v3::codec::zfp::ZfpCodecConfigurationV1;

use super::*;

Expand Down
2 changes: 2 additions & 0 deletions tests/cities.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg(all(feature = "sharding", feature = "zstd"))]

use std::{
error::Error,
fs::File,
Expand Down

0 comments on commit c618f16

Please sign in to comment.