Skip to content

Commit 28e66bb

Browse files
committed
Fix the codec registration test
1 parent 3b87ba8 commit 28e66bb

File tree

1 file changed

+1
-1
lines changed
  • crates/numcodecs-python/src

1 file changed

+1
-1
lines changed

crates/numcodecs-python/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ mod tests {
317317

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

323323
// create a codec using registry lookup of the custom name

0 commit comments

Comments
 (0)