From 87f92546db9a20e2c3a4ebf737d065b5ce25a007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joseLu=C3=ADs?= Date: Thu, 6 May 2021 13:01:56 +0200 Subject: [PATCH] [rust] remove raw_wrap macro --- rust/src/macros.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/rust/src/macros.rs b/rust/src/macros.rs index b3b38d01a..5888bfc60 100644 --- a/rust/src/macros.rs +++ b/rust/src/macros.rs @@ -216,14 +216,3 @@ macro_rules! error_str { error_str![$str, ""]; }; } - -/// Returns an [`NcResult`]`` from an [`NcResult`]``. -#[macro_export] -macro_rules! raw_wrap { - ($res:expr) => { - match $res { - Ok(raw) => return Ok(Self { raw }), - Err(e) => return Err(e), - } - }; -}