Skip to content

Commit

Permalink
Revert "Add convertion from Token to proc_macro::Tokens"
Browse files Browse the repository at this point in the history
This reverts commit 3b20d7f.
  • Loading branch information
alexcrichton committed Jul 6, 2017
1 parent 3b20d7f commit 0b8ebcb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
//! recursion limit by adding `#![recursion_limit = "128"]` to your crate. An even
//! higher limit may be necessary for especially large invocations.
extern crate proc_macro;
extern crate proc_macro2;

mod tokens;
Expand Down
8 changes: 0 additions & 8 deletions src/tokens.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use super::ToTokens;
use std::fmt::{self, Display};

use proc_macro;
use proc_macro2::{TokenStream, TokenTree, TokenNode, Term, Span};
use proc_macro2::Delimiter;

Expand Down Expand Up @@ -126,13 +125,6 @@ impl From<Tokens> for TokenStream {
}
}

impl From<Tokens> for proc_macro::TokenStream {
fn from(tokens: Tokens) -> proc_macro::TokenStream {
let tokens: TokenStream = tokens.into();
tokens.into()
}
}

impl Default for Tokens {
fn default() -> Self {
Tokens::new()
Expand Down

0 comments on commit 0b8ebcb

Please sign in to comment.