Move to the 2021 edition

This commit is contained in:
Hirrolot 2022-10-06 23:37:04 +06:00
parent d17ebafb38
commit 1ec3eabfeb
2 changed files with 1 additions and 3 deletions

View file

@ -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

View file

@ -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)),