[rust] remove raw_wrap macro

pull/1637/head
joseLuís 3 years ago
parent aa0e242a7a
commit 87f92546db

@ -216,14 +216,3 @@ macro_rules! error_str {
error_str![$str, ""];
};
}
/// Returns an [`NcResult`]`<Self { raw: T }>` from an [`NcResult`]`<T>`.
#[macro_export]
macro_rules! raw_wrap {
($res:expr) => {
match $res {
Ok(raw) => return Ok(Self { raw }),
Err(e) => return Err(e),
}
};
}

Loading…
Cancel
Save