diff --git a/Cargo.toml b/Cargo.toml index d9295f49..e2cb3d1c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "teloxide-macros" version = "0.7.0" description = "The teloxide's procedural macros" license = "MIT" -edition = "2018" +edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/error.rs b/src/error.rs index 3f1603bf..0d27c475 100644 --- a/src/error.rs +++ b/src/error.rs @@ -17,8 +17,6 @@ pub(crate) fn compile_error_at(msg: &str, sp: Span) -> Error { use proc_macro2::{ Delimiter, Group, Ident, Literal, Punct, Spacing, TokenTree, }; - use std::iter::FromIterator; - // compile_error! { $msg } let ts = TokenStream::from_iter(vec![ TokenTree::Ident(Ident::new("compile_error", sp)),