Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_packages_modules_Bluetooth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid
platform_packages_modules_Bluetooth
Commits
f9dff389
Commit
f9dff389
authored
2 years ago
by
David Duarte
Browse files
Options
Downloads
Patches
Plain Diff
PDL: Remove unnecessary `extern crate`
Test: compiles Change-Id: Ifcd68ba5864183e89f902ebed62ae18bd3dd3738
parent
fe1986fc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/pdl/src/main.rs
+1
-10
1 addition, 10 deletions
tools/pdl/src/main.rs
tools/pdl/src/parser.rs
+1
-1
1 addition, 1 deletion
tools/pdl/src/parser.rs
with
2 additions
and
11 deletions
tools/pdl/src/main.rs
+
1
−
10
View file @
f9dff389
//! 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
;
...
...
This diff is collapsed.
Click to expand it.
tools/pdl/src/parser.rs
+
1
−
1
View file @
f9dff389
...
...
@@ -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 }
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment