Skip to content

Commit

Permalink
Use new for compatibility back to 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
davejcameron committed Sep 16, 2024
1 parent aba15aa commit 5179dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/src/ruby_api/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl Module {

let result = RArray::with_capacity(imports.len());
for import in imports {
let hash = RHash::with_capacity(3);
let hash = RHash::new();
hash.aset("module", import.module())?;
hash.aset("name", import.name())?;
hash.aset("type", format!("{:?}", import.ty()))?;
Expand Down

0 comments on commit 5179dd9

Please sign in to comment.