Replace unnecessary exchange util.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-11-27 07:22:55 +00:00
1 parent 52b156e034
commit 8f54d9dc09
5 files changed
+13 -15

No files matched your search

-3
View File
@@ -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 )|* ) => {