mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
cargo fix --edition
This commit is contained in:
parent
e1fcffb336
commit
a15d33a10e
197 changed files with 1414 additions and 1380 deletions
|
@ -4,16 +4,16 @@
|
|||
|
||||
//! Computed types for SVG properties.
|
||||
|
||||
use values::computed::color::Color;
|
||||
use values::computed::url::ComputedUrl;
|
||||
use values::computed::{LengthOrPercentage, NonNegativeLengthOrPercentage};
|
||||
use values::computed::{NonNegativeNumber, Number, Opacity};
|
||||
use values::generics::svg as generic;
|
||||
use values::RGBA;
|
||||
use crate::values::computed::color::Color;
|
||||
use crate::values::computed::url::ComputedUrl;
|
||||
use crate::values::computed::{LengthOrPercentage, NonNegativeLengthOrPercentage};
|
||||
use crate::values::computed::{NonNegativeNumber, Number, Opacity};
|
||||
use crate::values::generics::svg as generic;
|
||||
use crate::values::RGBA;
|
||||
|
||||
pub use values::specified::SVGPaintOrder;
|
||||
pub use crate::values::specified::SVGPaintOrder;
|
||||
|
||||
pub use values::specified::MozContextProperties;
|
||||
pub use crate::values::specified::MozContextProperties;
|
||||
|
||||
/// Computed SVG Paint value
|
||||
pub type SVGPaint = generic::SVGPaint<Color, ComputedUrl>;
|
||||
|
@ -83,7 +83,7 @@ pub type SVGWidth = generic::SVGLength<NonNegativeSvgLengthOrPercentageOrNumber>
|
|||
impl SVGWidth {
|
||||
/// `1px`.
|
||||
pub fn one() -> Self {
|
||||
use values::generics::NonNegative;
|
||||
use crate::values::generics::NonNegative;
|
||||
generic::SVGLength::Length(generic::SvgLengthOrPercentageOrNumber::LengthOrPercentage(
|
||||
NonNegative(LengthOrPercentage::one()),
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue