From a990de90fe41456a23e58bd087d2f107d321f3a1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 19 Jul 2024 16:37:58 +0400 Subject: Deleted vendor folder --- vendor/syn/src/gen_helper.rs | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 vendor/syn/src/gen_helper.rs (limited to 'vendor/syn/src/gen_helper.rs') diff --git a/vendor/syn/src/gen_helper.rs b/vendor/syn/src/gen_helper.rs deleted file mode 100644 index e433bac..0000000 --- a/vendor/syn/src/gen_helper.rs +++ /dev/null @@ -1,34 +0,0 @@ -#[cfg(feature = "fold")] -pub(crate) mod fold { - use crate::punctuated::{Pair, Punctuated}; - - pub(crate) trait FoldHelper { - type Item; - fn lift(self, f: F) -> Self - where - F: FnMut(Self::Item) -> Self::Item; - } - - impl FoldHelper for Vec { - type Item = T; - fn lift(self, f: F) -> Self - where - F: FnMut(Self::Item) -> Self::Item, - { - self.into_iter().map(f).collect() - } - } - - impl FoldHelper for Punctuated { - type Item = T; - fn lift(self, mut f: F) -> Self - where - F: FnMut(Self::Item) -> Self::Item, - { - self.into_pairs() - .map(Pair::into_tuple) - .map(|(t, u)| Pair::new(f(t), u)) - .collect() - } - } -} -- cgit v1.2.3