mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +01:00
Move to the 2021 edition
This commit is contained in:
parent
d17ebafb38
commit
1ec3eabfeb
2 changed files with 1 additions and 3 deletions
|
@ -3,7 +3,7 @@ name = "teloxide-macros"
|
||||||
version = "0.7.0"
|
version = "0.7.0"
|
||||||
description = "The teloxide's procedural macros"
|
description = "The teloxide's procedural macros"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,6 @@ pub(crate) fn compile_error_at(msg: &str, sp: Span) -> Error {
|
||||||
use proc_macro2::{
|
use proc_macro2::{
|
||||||
Delimiter, Group, Ident, Literal, Punct, Spacing, TokenTree,
|
Delimiter, Group, Ident, Literal, Punct, Spacing, TokenTree,
|
||||||
};
|
};
|
||||||
use std::iter::FromIterator;
|
|
||||||
|
|
||||||
// compile_error! { $msg }
|
// compile_error! { $msg }
|
||||||
let ts = TokenStream::from_iter(vec![
|
let ts = TokenStream::from_iter(vec![
|
||||||
TokenTree::Ident(Ident::new("compile_error", sp)),
|
TokenTree::Ident(Ident::new("compile_error", sp)),
|
||||||
|
|
Loading…
Add table
Reference in a new issue