Skip to content

Commit

Permalink
fixup syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Dec 15, 2022
1 parent 00ca72b commit d1ee59a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion der/src/referenced.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ impl<T> OwnedToRef for Option<T>
where
T: OwnedToRef,
{
type Borrowed<'a> = Option<T::Borrowed<'a>> where T: 'a;
type Borrowed<'a>
where
T: 'a,
= Option<T::Borrowed<'a>>;

fn to_ref<'a>(&'a self) -> Self::Borrowed<'a> {
self.as_ref().map(|o| o.to_ref())
Expand Down

0 comments on commit d1ee59a

Please sign in to comment.