Skip to content

Commit

Permalink
(fix) clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed May 21, 2021
1 parent d5bb7db commit 37b9b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/partial.rs
Expand Up @@ -25,7 +25,7 @@ fn find_partial<'reg: 'rc, 'rc: 'a, 'a>(
}

if let Some(tpl) = r.get_or_load_template_optional(name) {
return tpl.map(|t| Some(t));
return tpl.map(Option::Some);
}

if let Some(tpl) = d.template() {
Expand Down

0 comments on commit 37b9b2e

Please sign in to comment.