Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: matsadler/magnus
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0eebfc42a33fc6366d83c159d5556973b7bc1067
Choose a base ref
..
head repository: matsadler/magnus
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7bb6841d069e7fd79b9493d7a97ce705a0f798ee
Choose a head ref
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/try_convert.rs
6 changes: 6 additions & 0 deletions src/try_convert.rs
Original file line number Diff line number Diff line change
@@ -50,6 +50,12 @@ impl TryConvert for () {
}
}

impl TryConvertOwned for () {
fn try_convert_owned(val: Value) -> Result<Self, Error> {
Self::try_convert(val)
}
}

impl<T> TryConvert for Option<T>
where
T: TryConvert,