From 28e66bbf1c5fb98f6473748996b659f143f711ef Mon Sep 17 00:00:00 2001 From: Juniper Tyree <50025784+juntyr@users.noreply.github.com> Date: Fri, 19 Jul 2024 09:16:33 +0000 Subject: [PATCH] Fix the codec registration test --- crates/numcodecs-python/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/numcodecs-python/src/lib.rs b/crates/numcodecs-python/src/lib.rs index e64ab16e..463f8cb8 100644 --- a/crates/numcodecs-python/src/lib.rs +++ b/crates/numcodecs-python/src/lib.rs @@ -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