mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Replace unnecessary exchange util.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
52b156e034
commit
8f54d9dc09
5 files changed
+13
-15
No files matched your search
@@ -42,9 +42,6 @@ pub use self::{
|
||||
},
|
||||
};
|
||||
|
||||
#[inline]
|
||||
pub fn exchange<T>(state: &mut T, source: T) -> T { std::mem::replace(state, source) }
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! extract_variant {
|
||||
( $e:expr_2021, $( $variant:path )|* ) => {
|
||||
|
||||
Reference in new issue
Block a user