-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary imports #134
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Nico Burns <nico@nicoburns.com>
Signed-off-by: Nico Burns <nico@nicoburns.com>
Signed-off-by: Nico Burns <nico@nicoburns.com>
#[cfg(feature = "gecko")] | ||
#[inline] | ||
#[cfg(feature = "gecko")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: duplicate attribute.
@@ -1949,7 +1949,6 @@ impl ComputedValues { | |||
|
|||
/// Get the initial computed values. | |||
pub fn initial_values_with_font_override(default_font: super::style_structs::Font) -> Arc<Self> { | |||
use crate::logical_geometry::WritingMode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already imported at top of file
@@ -15,7 +15,7 @@ use crate::values::specified::{AllowQuirks, Integer, NonNegativeNumberOrPercenta | |||
use crate::values::CustomIdent; | |||
use cssparser::Parser; | |||
use num_traits::FromPrimitive; | |||
use std::fmt::{self, Debug, Write}; | |||
use std::fmt::{self, Write}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not necessary to import std::fmt::Debug
just to use the derive macro.
These imports do not exist upstream so this helps to reduce the diff.