Skip to content

Commit 53a5566

Browse files
cargo +nightly fmt (#5572)
rust-lang/rustfmt#5887
1 parent 6eebd88 commit 53a5566

File tree

4 files changed

+32
-7
lines changed

4 files changed

+32
-7
lines changed

utils/pattern/src/common.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ where
153153
T: PlaceholderValueProvider<K> + ?Sized,
154154
{
155155
type Error = T::Error;
156-
type W<'a> = T::W<'a> where T: 'a, 'b: 'a;
156+
type W<'a>
157+
= T::W<'a>
158+
where
159+
T: 'a,
160+
'b: 'a;
157161
const LITERAL_PART: Part = T::LITERAL_PART;
158162
fn value_for(&self, key: K) -> (Self::W<'_>, Part) {
159163
(*self).value_for(key)

utils/pattern/src/double.rs

+9-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ where
7272
W1: Writeable,
7373
{
7474
type Error = Infallible;
75-
type W<'a> = WriteableAsTryWriteableInfallible<Either<&'a W0, &'a W1>> where W0: 'a, W1: 'a;
75+
type W<'a>
76+
= WriteableAsTryWriteableInfallible<Either<&'a W0, &'a W1>>
77+
where
78+
W0: 'a,
79+
W1: 'a;
7680
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
7781
#[inline]
7882
fn value_for(&self, key: DoublePlaceholderKey) -> (Self::W<'_>, writeable::Part) {
@@ -92,7 +96,10 @@ where
9296
W: Writeable,
9397
{
9498
type Error = Infallible;
95-
type W<'a> = WriteableAsTryWriteableInfallible<&'a W> where W: 'a;
99+
type W<'a>
100+
= WriteableAsTryWriteableInfallible<&'a W>
101+
where
102+
W: 'a;
96103
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
97104
#[inline]
98105
fn value_for(&self, key: DoublePlaceholderKey) -> (Self::W<'_>, writeable::Part) {

utils/pattern/src/multi_named.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ where
9393
W: Writeable,
9494
{
9595
type Error = MissingNamedPlaceholderError<'k>;
96-
type W<'a> = Result<&'a W, Self::Error> where W: 'a, Self: 'a;
96+
type W<'a>
97+
= Result<&'a W, Self::Error>
98+
where
99+
W: 'a,
100+
Self: 'a;
97101
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
98102
#[inline]
99103
fn value_for<'a>(
@@ -116,7 +120,11 @@ where
116120
S: litemap::store::Store<K, W>,
117121
{
118122
type Error = MissingNamedPlaceholderError<'k>;
119-
type W<'a> = Result<&'a W, Self::Error> where W: 'a, Self: 'a;
123+
type W<'a>
124+
= Result<&'a W, Self::Error>
125+
where
126+
W: 'a,
127+
Self: 'a;
120128
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
121129
#[inline]
122130
fn value_for<'a>(

utils/pattern/src/single.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ where
6161
W: Writeable,
6262
{
6363
type Error = Infallible;
64-
type W<'a> = WriteableAsTryWriteableInfallible<&'a W> where W: 'a;
64+
type W<'a>
65+
= WriteableAsTryWriteableInfallible<&'a W>
66+
where
67+
W: 'a;
6568
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
6669
fn value_for(&self, _key: SinglePlaceholderKey) -> (Self::W<'_>, writeable::Part) {
6770
(
@@ -76,7 +79,10 @@ where
7679
W: Writeable,
7780
{
7881
type Error = Infallible;
79-
type W<'a> = WriteableAsTryWriteableInfallible<&'a W> where W: 'a;
82+
type W<'a>
83+
= WriteableAsTryWriteableInfallible<&'a W>
84+
where
85+
W: 'a;
8086
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
8187
fn value_for(&self, _key: SinglePlaceholderKey) -> (Self::W<'_>, writeable::Part) {
8288
let [value] = self;

0 commit comments

Comments
 (0)