Skip to content

Commit

Permalink
Fix rustfmt for nightly/beta (#5911)
Browse files Browse the repository at this point in the history
Unclear if this counts as a breaking change from rustfmt but this should
be an easy fix on our side.

Fixes beta CI. Nightly CI is also fixed by this, but nightly CI is
broken due to other reasons too.


<!--
Thank you for your pull request to ICU4X!

Reminder: try to use [Conventional
Comments](https://conventionalcomments.org/) to make comments clearer.

Please see
https://github.com/unicode-org/icu4x/blob/main/CONTRIBUTING.md for
general
information on contributing to ICU4X.
-->
  • Loading branch information
Manishearth authored Dec 17, 2024
1 parent 4bad030 commit c2af1f0
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 14 deletions.
6 changes: 4 additions & 2 deletions components/pattern/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,13 @@ where
{
type Error = T::Error;

type W<'a> = T::W<'a>
type W<'a>
= T::W<'a>
where
Self: 'a;

type L<'a, 'l> = T::L<'a, 'l>
type L<'a, 'l>
= T::L<'a, 'l>
where
Self: 'a;

Expand Down
12 changes: 8 additions & 4 deletions components/pattern/src/double.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ where
{
type Error = Infallible;

type W<'a> = WriteableAsTryWriteableInfallible<Either<&'a W0, &'a W1>>
type W<'a>
= WriteableAsTryWriteableInfallible<Either<&'a W0, &'a W1>>
where
Self: 'a;

type L<'a, 'l> = &'l str
type L<'a, 'l>
= &'l str
where
Self: 'a;

Expand All @@ -104,11 +106,13 @@ where
{
type Error = Infallible;

type W<'a> = WriteableAsTryWriteableInfallible<&'a W>
type W<'a>
= WriteableAsTryWriteableInfallible<&'a W>
where
Self: 'a;

type L<'a, 'l> = &'l str
type L<'a, 'l>
= &'l str
where
Self: 'a;

Expand Down
12 changes: 8 additions & 4 deletions components/pattern/src/multi_named.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ where
{
type Error = MissingNamedPlaceholderError<'k>;

type W<'a> = Result<&'a W, Self::Error>
type W<'a>
= Result<&'a W, Self::Error>
where
Self: 'a;

type L<'a, 'l> = &'l str
type L<'a, 'l>
= &'l str
where
Self: 'a;

Expand All @@ -125,11 +127,13 @@ where
{
type Error = MissingNamedPlaceholderError<'k>;

type W<'a> = Result<&'a W, Self::Error>
type W<'a>
= Result<&'a W, Self::Error>
where
Self: 'a;

type L<'a, 'l> = &'l str
type L<'a, 'l>
= &'l str
where
Self: 'a;

Expand Down
12 changes: 8 additions & 4 deletions components/pattern/src/single.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ where
{
type Error = Infallible;

type W<'a> = WriteableAsTryWriteableInfallible<&'a W>
type W<'a>
= WriteableAsTryWriteableInfallible<&'a W>
where
Self: 'a;

type L<'a, 'l> = &'l str
type L<'a, 'l>
= &'l str
where
Self: 'a;

Expand All @@ -89,11 +91,13 @@ where
{
type Error = Infallible;

type W<'a> = WriteableAsTryWriteableInfallible<&'a W>
type W<'a>
= WriteableAsTryWriteableInfallible<&'a W>
where
Self: 'a;

type L<'a, 'l> = &'l str
type L<'a, 'l>
= &'l str
where
Self: 'a;

Expand Down

0 comments on commit c2af1f0

Please sign in to comment.