Skip to content

Commit

Permalink
Fix the codec registration test
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Jul 19, 2024
1 parent 3b87ba8 commit 28e66bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/numcodecs-python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ mod tests {

// re-register the codec class under a custom name
let class = codec.class();
Registry::register_codec(class, Some("my-crc32"))?;
Registry::register_codec(class.as_borrowed(), Some("my-crc32"))?;
config.set_item("id", "my-crc32")?;

// create a codec using registry lookup of the custom name
Expand Down

0 comments on commit 28e66bb

Please sign in to comment.