Skip to content

Commit

Permalink
cargo +nightly fmt (#5572)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian authored Sep 23, 2024
1 parent 6eebd88 commit 53a5566
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
6 changes: 5 additions & 1 deletion utils/pattern/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ where
T: PlaceholderValueProvider<K> + ?Sized,
{
type Error = T::Error;
type W<'a> = T::W<'a> where T: 'a, 'b: 'a;
type W<'a>
= T::W<'a>
where
T: 'a,
'b: 'a;
const LITERAL_PART: Part = T::LITERAL_PART;
fn value_for(&self, key: K) -> (Self::W<'_>, Part) {
(*self).value_for(key)
Expand Down
11 changes: 9 additions & 2 deletions utils/pattern/src/double.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ where
W1: Writeable,
{
type Error = Infallible;
type W<'a> = WriteableAsTryWriteableInfallible<Either<&'a W0, &'a W1>> where W0: 'a, W1: 'a;
type W<'a>
= WriteableAsTryWriteableInfallible<Either<&'a W0, &'a W1>>
where
W0: 'a,
W1: 'a;
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
#[inline]
fn value_for(&self, key: DoublePlaceholderKey) -> (Self::W<'_>, writeable::Part) {
Expand All @@ -92,7 +96,10 @@ where
W: Writeable,
{
type Error = Infallible;
type W<'a> = WriteableAsTryWriteableInfallible<&'a W> where W: 'a;
type W<'a>
= WriteableAsTryWriteableInfallible<&'a W>
where
W: 'a;
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
#[inline]
fn value_for(&self, key: DoublePlaceholderKey) -> (Self::W<'_>, writeable::Part) {
Expand Down
12 changes: 10 additions & 2 deletions utils/pattern/src/multi_named.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ where
W: Writeable,
{
type Error = MissingNamedPlaceholderError<'k>;
type W<'a> = Result<&'a W, Self::Error> where W: 'a, Self: 'a;
type W<'a>
= Result<&'a W, Self::Error>
where
W: 'a,
Self: 'a;
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
#[inline]
fn value_for<'a>(
Expand All @@ -116,7 +120,11 @@ where
S: litemap::store::Store<K, W>,
{
type Error = MissingNamedPlaceholderError<'k>;
type W<'a> = Result<&'a W, Self::Error> where W: 'a, Self: 'a;
type W<'a>
= Result<&'a W, Self::Error>
where
W: 'a,
Self: 'a;
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
#[inline]
fn value_for<'a>(
Expand Down
10 changes: 8 additions & 2 deletions utils/pattern/src/single.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ where
W: Writeable,
{
type Error = Infallible;
type W<'a> = WriteableAsTryWriteableInfallible<&'a W> where W: 'a;
type W<'a>
= WriteableAsTryWriteableInfallible<&'a W>
where
W: 'a;
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
fn value_for(&self, _key: SinglePlaceholderKey) -> (Self::W<'_>, writeable::Part) {
(
Expand All @@ -76,7 +79,10 @@ where
W: Writeable,
{
type Error = Infallible;
type W<'a> = WriteableAsTryWriteableInfallible<&'a W> where W: 'a;
type W<'a>
= WriteableAsTryWriteableInfallible<&'a W>
where
W: 'a;
const LITERAL_PART: writeable::Part = crate::PATTERN_LITERAL_PART;
fn value_for(&self, _key: SinglePlaceholderKey) -> (Self::W<'_>, writeable::Part) {
let [value] = self;
Expand Down

0 comments on commit 53a5566

Please sign in to comment.