Skip to content

Commit

Permalink
Add cfg flags to range.rs test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
elftausend committed Oct 5, 2024
1 parent 5060858 commit 2aa1fb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ min-cl = { git = "https://github.com/elftausend/min-cl", optional = true }
# min-cl = { version = "0.3.0", optional=true }

[features]
default = ["cpu", "opencl", "blas", "static-api", "stack", "macro", "untyped", "autograd", "autograd", "cached", "lazy", "fork", "graph", "serde", "cuda"]
default = ["cpu", "opencl", "blas", "static-api", "stack", "macro", "untyped", "autograd", "autograd", "cached", "lazy", "fork", "graph", "serde",]
# default = ["cpu"]
# default = ["no-std"]
# default = ["opencl"]
Expand Down
2 changes: 2 additions & 0 deletions src/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ impl AsRange for RangeToInclusive<usize> {

#[cfg(test)]
mod tests {
#[cfg(feature = "cpu")]
#[cfg(feature = "cached")]
use crate::{Base, Cached, Cursor, CPU}; // Moved shared imports to the top

#[cfg(feature = "cpu")]
Expand Down

0 comments on commit 2aa1fb8

Please sign in to comment.