Formatting fixes

This commit is contained in:
Laurenz 2023-01-22 13:18:30 +01:00
parent 6f7e8dd497
commit 815ee3254c
4 changed files with 22 additions and 22 deletions

View File

@ -70,13 +70,13 @@ impl HNode {
impl HNode {
/// Normal strong spacing.
pub fn strong(amount: Spacing) -> Self {
Self { amount, weak: false }
pub fn strong(amount: impl Into<Spacing>) -> Self {
Self { amount: amount.into(), weak: false }
}
/// User-created weak spacing.
pub fn weak(amount: Spacing) -> Self {
Self { amount, weak: true }
pub fn weak(amount: impl Into<Spacing>) -> Self {
Self { amount: amount.into(), weak: true }
}
}

View File

@ -45,7 +45,7 @@ impl Align {
}
/// Returns the position of this alignment in a container with the given
/// extentq.
/// extent.
pub fn position(self, extent: Abs) -> Abs {
match self {
Self::Left | Self::Top => Abs::zero(),