Skip to content

Commit

Permalink
Fix import lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Weibye committed Apr 7, 2023
1 parent fe5164c commit 5522573
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/style/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ impl MaxTrackSizingFunction {
/// will if the available_space is `Some`). Otherwise returns None.
#[inline(always)]
pub fn definite_value(self, parent_size: Option<f32>) -> Option<f32> {
use MaxTrackSizingFunction::{Auto, *};
use MaxTrackSizingFunction::*;
match self {
Fixed(LengthPercentage::Points(size)) => Some(size),
Fixed(LengthPercentage::Percent(fraction)) => parent_size.map(|size| fraction * size),
Expand Down Expand Up @@ -342,7 +342,7 @@ impl MaxTrackSizingFunction {
/// Non-percentage values always return None.
#[inline(always)]
pub fn resolved_percentage_size(self, parent_size: f32) -> Option<f32> {
use MaxTrackSizingFunction::{Auto, *};
use MaxTrackSizingFunction::*;
match self {
Fixed(LengthPercentage::Percent(fraction)) => Some(fraction * parent_size),
Fixed(LengthPercentage::Points(_)) | MinContent | MaxContent | FitContent(_) | Auto | Fraction(_) => None,
Expand Down Expand Up @@ -409,7 +409,7 @@ impl MinTrackSizingFunction {
/// will if the available_space is `Some`). Otherwise returns `None`.
#[inline(always)]
pub fn definite_value(self, parent_size: Option<f32>) -> Option<f32> {
use MinTrackSizingFunction::{Auto, *};
use MinTrackSizingFunction::*;
match self {
Fixed(LengthPercentage::Points(size)) => Some(size),
Fixed(LengthPercentage::Percent(fraction)) => parent_size.map(|size| fraction * size),
Expand All @@ -421,7 +421,7 @@ impl MinTrackSizingFunction {
/// Non-percentage values always return None.
#[inline(always)]
pub fn resolved_percentage_size(self, parent_size: f32) -> Option<f32> {
use MinTrackSizingFunction::{Auto, *};
use MinTrackSizingFunction::*;
match self {
Fixed(LengthPercentage::Percent(fraction)) => Some(fraction * parent_size),
Fixed(LengthPercentage::Points(_)) | MinContent | MaxContent | Auto => None,
Expand Down

0 comments on commit 5522573

Please sign in to comment.