Skip to content
Snippets Groups Projects
Commit f9dff389 authored by David Duarte's avatar David Duarte
Browse files

PDL: Remove unnecessary `extern crate`

Test: compiles
Change-Id: Ifcd68ba5864183e89f902ebed62ae18bd3dd3738
parent fe1986fc
No related branches found
No related tags found
No related merge requests found
//! PDL parser and linter.
extern crate codespan_reporting;
extern crate pest;
#[macro_use]
extern crate pest_derive;
extern crate serde;
extern crate serde_json;
extern crate structopt;
use codespan_reporting::term;
use codespan_reporting::term::termcolor;
use codespan_reporting::term::{self, termcolor};
use structopt::StructOpt;
mod ast;
......
......@@ -9,7 +9,7 @@ use std::iter::{Filter, Peekable};
// TODO: use #[grammar = "pdl.pest"]
// currently not possible because CARGO_MANIFEST_DIR is not set
// in soong environment.
#[derive(Parser)]
#[derive(pest_derive::Parser)]
#[grammar_inline = r#"
WHITESPACE = _{ " " | "\n" }
COMMENT = { block_comment | line_comment }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment