Skip to content

Commit

Permalink
Fix deprecation warning for ruby_abi_version
Browse files Browse the repository at this point in the history
  • Loading branch information
ianks committed Aug 29, 2024
1 parent 4fff287 commit 96370f7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ext/lz4_flex_ext/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use magnus::{
value::{InnerValue, Lazy},
Error, ExceptionClass, RModule, Ruby,
};
use rb_sys::ruby_abi_version;

static MODULE_ROOT: Lazy<RModule> = Lazy::new(|ruby| ruby.define_module("Lz4Flex").unwrap());

Expand Down Expand Up @@ -46,8 +45,6 @@ pub(crate) fn decode_error_class() -> ExceptionClass {
unsafe { DECODE_ERROR_CLASS.get_inner_with(&Ruby::get_unchecked()) }
}

ruby_abi_version!();

#[magnus::init]
fn init(ruby: &Ruby) -> Result<(), Error> {
let module = MODULE_ROOT.get_inner_with(ruby);
Expand Down

0 comments on commit 96370f7

Please sign in to comment.