Skip to content

Commit

Permalink
f docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Jul 1, 2022
1 parent f53ffec commit 0ee7b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/src/util/ser.rs
Expand Up @@ -268,7 +268,7 @@ impl<T: Readable> Readable for OptionDeserWrapper<T> {
}
/// When handling default_values, we want to map the default-value T directly
/// to a OptionDeserWrapper<T> in a way that works for `field: T = t;` as
/// well. Thus, we use assume `Into<T> for T` does nothing and use that.
/// well. Thus, we assume `Into<T> for T` does nothing and use that.
impl<T: Readable> From<T> for OptionDeserWrapper<T> {
fn from(t: T) -> OptionDeserWrapper<T> { OptionDeserWrapper(Some(t)) }
}
Expand Down

0 comments on commit 0ee7b7f

Please sign in to comment.