Skip to content

Commit

Permalink
cfg for tests that require alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Nov 12, 2024
1 parent a7a35b9 commit 72efb9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/simd_funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ cfg_if! {
}

#[cfg(test)]
#[cfg(feature = "alloc")]
mod tests {
use super::*;
use alloc::vec::Vec;
Expand Down
1 change: 1 addition & 0 deletions tests/test_data.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(feature = "alloc")]
mod test_data {
mod big5;
mod euc_jp;
Expand Down

0 comments on commit 72efb9a

Please sign in to comment.