versions sorting
This commit is contained in:
parent
427d54f341
commit
6259a5a737
@ -22,5 +22,5 @@ aster = { version = "0.17", default-features = false }
|
|||||||
clippy = { version = "^0.*", optional = true }
|
clippy = { version = "^0.*", optional = true }
|
||||||
quasi = { version = "0.11", default-features = false }
|
quasi = { version = "0.11", default-features = false }
|
||||||
quasi_macros = { version = "0.11", optional = true }
|
quasi_macros = { version = "0.11", optional = true }
|
||||||
syntex = { version = "*", optional = true }
|
syntex = { version = "0.33", optional = true }
|
||||||
syntex_syntax = { version = "*", optional = true }
|
syntex_syntax = { version = "0.33", optional = true }
|
||||||
|
@ -50,12 +50,11 @@ include!("lib.rs.in");
|
|||||||
|
|
||||||
#[cfg(feature = "with-syntex")]
|
#[cfg(feature = "with-syntex")]
|
||||||
pub fn register(reg: &mut syntex::Registry) {
|
pub fn register(reg: &mut syntex::Registry) {
|
||||||
/// Strip the serde attributes from the crate.
|
use syntax::{ast, fold};
|
||||||
|
|
||||||
#[cfg(feature = "with-syntex")]
|
#[cfg(feature = "with-syntex")]
|
||||||
fn strip_attributes(krate: ast::Crate) -> ast::Crate {
|
fn strip_attributes(krate: ast::Crate) -> ast::Crate {
|
||||||
/// Helper folder that strips the serde attributes after the extensions have been expanded.
|
|
||||||
struct StripAttributeFolder;
|
struct StripAttributeFolder;
|
||||||
|
|
||||||
impl fold::Folder for StripAttributeFolder {
|
impl fold::Folder for StripAttributeFolder {
|
||||||
fn fold_attribute(&mut self, attr: ast::Attribute) -> Option<ast::Attribute> {
|
fn fold_attribute(&mut self, attr: ast::Attribute) -> Option<ast::Attribute> {
|
||||||
match attr.node.value.node {
|
match attr.node.value.node {
|
||||||
|
Loading…
Reference in New Issue
Block a user