From 8c0128612f9325db03240d3dd20a2547a740b49e Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 15 Nov 2025 14:47:24 +0100 Subject: [PATCH] feat: implement take errors Signed-off-by: kjuulh --- Cargo.lock | 2 +- crates/mad/src/lib.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 8926884..ed9a927 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -222,7 +222,7 @@ dependencies = [ [[package]] name = "notmad" -version = "0.8.1" +version = "0.9.0" dependencies = [ "anyhow", "async-trait", diff --git a/crates/mad/src/lib.rs b/crates/mad/src/lib.rs index 935e7df..2dbef9c 100644 --- a/crates/mad/src/lib.rs +++ b/crates/mad/src/lib.rs @@ -166,6 +166,10 @@ impl AggregateError { pub fn get_errors(&self) -> &[MadError] { &self.errors } + + pub fn take_errors(self) -> Vec { + self.errors + } } impl Display for AggregateError {