RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.
This commit is contained in:
28
zeroidc/vendor/itertools/src/impl_macros.rs
vendored
Normal file
28
zeroidc/vendor/itertools/src/impl_macros.rs
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
//!
|
||||
//! Implementation's internal macros
|
||||
|
||||
macro_rules! debug_fmt_fields {
|
||||
($tyname:ident, $($($field:tt/*TODO ideally we would accept ident or tuple element here*/).+),*) => {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
|
||||
f.debug_struct(stringify!($tyname))
|
||||
$(
|
||||
.field(stringify!($($field).+), &self.$($field).+)
|
||||
)*
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! clone_fields {
|
||||
($($field:ident),*) => {
|
||||
fn clone(&self) -> Self {
|
||||
Self {
|
||||
$($field: self.$field.clone(),)*
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! ignore_ident{
|
||||
($id:ident, $($t:tt)*) => {$($t)*};
|
||||
}
|
||||
Reference in New Issue
Block a user