mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
[rust] remove raw_wrap macro
This commit is contained in:
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…
x
Reference in New Issue
Block a user