aboutsummaryrefslogtreecommitdiff
path: root/alacritty_config_derive/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_config_derive/src/lib.rs')
-rw-r--r--alacritty_config_derive/src/lib.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/alacritty_config_derive/src/lib.rs b/alacritty_config_derive/src/lib.rs
index 116d4828..a7850529 100644
--- a/alacritty_config_derive/src/lib.rs
+++ b/alacritty_config_derive/src/lib.rs
@@ -6,7 +6,7 @@ use proc_macro2::TokenStream as TokenStream2;
use quote::quote;
use syn::parse::{self, Parse, ParseStream};
use syn::punctuated::Punctuated;
-use syn::{GenericParam, Ident, LitStr, Path, Token, TypeParam};
+use syn::{GenericParam, Ident, LitStr, Token, TypeParam};
mod config_deserialize;
mod serde_replace;
@@ -25,12 +25,6 @@ pub fn derive_serde_replace(input: TokenStream) -> TokenStream {
serde_replace::derive(input)
}
-/// Verify that a token path ends with a specific segment.
-pub(crate) fn path_ends_with(path: &Path, segment: &str) -> bool {
- let segments = path.segments.iter();
- segments.last().map_or(false, |s| s.ident == segment)
-}
-
/// Storage for all necessary generics information.
#[derive(Default)]
struct GenericsStreams {