Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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