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/clap_derive/src/utils/error.rs | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 vendor/clap_derive/src/utils/error.rs (limited to 'vendor/clap_derive/src/utils/error.rs') diff --git a/vendor/clap_derive/src/utils/error.rs b/vendor/clap_derive/src/utils/error.rs deleted file mode 100644 index 276e349..0000000 --- a/vendor/clap_derive/src/utils/error.rs +++ /dev/null @@ -1,22 +0,0 @@ -pub trait SpanError { - #[allow(non_snake_case)] - fn EXPECTED_Span_OR_ToTokens(&self, msg: D) -> syn::Error; -} - -pub trait ToTokensError { - #[allow(non_snake_case)] - fn EXPECTED_Span_OR_ToTokens(&self, msg: D) -> syn::Error; -} - -impl ToTokensError for T { - fn EXPECTED_Span_OR_ToTokens(&self, msg: D) -> syn::Error { - // Curb monomorphization from generating too many identical `new_spanned`. - syn::Error::new_spanned(self.to_token_stream(), msg) - } -} - -impl SpanError for proc_macro2::Span { - fn EXPECTED_Span_OR_ToTokens(&self, msg: D) -> syn::Error { - syn::Error::new(*self, msg) - } -} -- cgit v1.2.3