Skip to content

Commit

Permalink
Fix unused imports warning for feature dependent use
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanahsmith committed Feb 13, 2023
1 parent 2bcf6ef commit a571ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/bytes.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use magnus::{eval, RString};

#[test]
#[cfg(feature = "bytes-crate")]
fn it_converts_to_bytes() {
use magnus::{eval, RString};

let _cleanup = unsafe { magnus::embed::init() };

let s: RString = unsafe { eval("[0,0,0].pack('c*')").unwrap() };
Expand Down

0 comments on commit a571ba9

Please sign in to comment.