From 3ccb1f770f2b60ef4f827356282545db560dee53 Mon Sep 17 00:00:00 2001 From: Dominik Werder Date: Wed, 4 Dec 2024 15:59:51 +0100 Subject: [PATCH] Improve container output --- src/apitypes.rs | 4 ++-- src/timebin.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apitypes.rs b/src/apitypes.rs index 9caaf6b..ab3cfcc 100644 --- a/src/apitypes.rs +++ b/src/apitypes.rs @@ -3,7 +3,7 @@ use serde::Serialize; use std::collections::BTreeMap; pub trait UserApiType { - fn into_serializable(self: Box) -> Box; + fn into_serializable_normal(self: Box) -> Box; fn into_serializable_json(self: Box) -> Box; } @@ -32,7 +32,7 @@ impl ToCborValue for EmptyStruct { } impl UserApiType for EmptyStruct { - fn into_serializable(self: Box) -> Box { + fn into_serializable_normal(self: Box) -> Box { Box::new(BTreeMap::::new()) } diff --git a/src/timebin.rs b/src/timebin.rs index 035a137..1b95336 100644 --- a/src/timebin.rs +++ b/src/timebin.rs @@ -172,7 +172,7 @@ pub trait BinningggContainerBinsDyn: &self, range: BinnedRange, ) -> Box; - fn fix_numerics(&mut self); + fn boxed_into_collectable_box(self: Box) -> Box; } pub type BinsBoxed = Box;