Closed
Bug 1499359
Opened 7 years ago
Closed 7 years ago
Unused import warning: HashMap in servo/components/style/build_gecko.rs
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: Alex_Gaynor, Assigned: bbouvier)
References
Details
Attachments
(2 files)
1.69 KB,
patch
|
emilio
:
review+
|
Details | Diff | Splinter Review |
6.62 KB,
patch
|
emilio
:
review+
|
Details | Diff | Splinter Review |
Since bug 1495669 the following warning happens during the build:
4:46.66 warning: unused import: `HashMap`
4:46.66 --> servo/components/style/build_gecko.rs:20:28
4:46.66 |
4:46.66 20 | use std::collections::{HashMap, HashSet};
4:46.66 | ^^^^^^^
4:46.66 |
4:46.66 = note: #[warn(unused_imports)] on by default
Assignee | ||
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
What do you think of applying rustfmt (stable) to the build_gecko.rs file?
Attachment #9017505 -
Flags: review?(emilio)
Updated•7 years ago
|
Attachment #9017504 -
Flags: review?(emilio) → review+
Comment 3•7 years ago
|
||
Comment on attachment 9017505 [details] [diff] [review]
2.rustfmt.patch
Review of attachment 9017505 [details] [diff] [review]:
-----------------------------------------------------------------
::: servo/components/style/build_gecko.rs
@@ +14,5 @@
>
> #[cfg(feature = "bindgen")]
> mod bindings {
> + use super::super::PYTHON;
> + use super::common::*;
Can you revert these changes? I would need to undo them to sync them to the Servo repo, because servo does it's own `use` statement order checking.
@@ +239,5 @@
> panic!(
> "Failed to generate bindings, flags: {:?}",
> command_line_opts
> );
> + }
Similarly, https://github.com/servo/servo/blob/master/rustfmt.toml#L1 will mean next person that runs rustfmt on servo will revert this.
@@ +588,5 @@
> }
>
> #[cfg(not(feature = "bindgen"))]
> mod bindings {
> + use super::common::*;
ditto.
Attachment #9017505 -
Flags: review?(emilio) → review+
Pushed by bbouvier@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/45de3b6b3996
; Remove unused HashMap import and remove namespacing around Table; r=emilio
https://hg.mozilla.org/integration/mozilla-inbound/rev/000359cfa701
Apply rustfmt on build_gecko.rs; r=emilio
Comment 5•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/45de3b6b3996
https://hg.mozilla.org/mozilla-central/rev/000359cfa701
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•