mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Run "cargo +nightly fmt" for style components in servo
The directories changed: * servo/components/selectors/ * servo/components/style/ * servo/components/style_derive/ * servo/ports/geckolib/ Per review request, disable rustfmt in `components_to_transform_3d_matrix()` to preserve the format for a call to `Transform3D::new`. My mozilla-central is at https://hg.mozilla.org/mozilla-central/rev/d1ae84015c22f2034435b47194fdced878072035 My nightly rust is 1.66.0-nightly (8b705839c 2022-09-26). Differential Revision: https://phabricator.services.mozilla.com/D158234
This commit is contained in:
parent
1a9198a5ef
commit
3da52edffc
60 changed files with 684 additions and 489 deletions
|
@ -160,7 +160,7 @@ pub use style_traits::arc_slice::ArcSlice;
|
|||
pub use style_traits::owned_slice::OwnedSlice;
|
||||
pub use style_traits::owned_str::OwnedStr;
|
||||
|
||||
use std::hash::{Hash, BuildHasher};
|
||||
use std::hash::{BuildHasher, Hash};
|
||||
|
||||
/// The CSS properties supported by the style system.
|
||||
/// Generated from the properties.mako.rs template by build.rs
|
||||
|
@ -298,7 +298,7 @@ impl From<std::collections::TryReserveError> for AllocErr {
|
|||
}
|
||||
|
||||
/// Shrink the capacity of the collection if needed.
|
||||
pub (crate) trait ShrinkIfNeeded {
|
||||
pub(crate) trait ShrinkIfNeeded {
|
||||
fn shrink_if_needed(&mut self);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue