Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9dff389 authored by David Duarte's avatar David Duarte
Browse files

PDL: Remove unnecessary `extern crate`

Test: compiles
Change-Id: Ifcd68ba5864183e89f902ebed62ae18bd3dd3738
parent fe1986fc
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
//! 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;
+1 −1
Original line number Diff line number Diff line
@@ -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 }