Skip to content

Commit 9770a83

Browse files
committed
clippy lint
1 parent 81963cb commit 9770a83

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tools/od_ref_bot/src/main.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,8 @@ fn format_embed(page: &str, data: &Data) -> Option<serenity::CreateEmbed> {
209209
PageReturnOrString::PageReturn(page) => {
210210
let mut return_string = String::new();
211211

212-
if let Some(val) = &page._type {
213-
if let ReturnTypeOrBool::String(string) = val {
214-
return_string.push_str(string.as_str());
215-
}
212+
if let Some(ReturnTypeOrBool::String(string)) = &page._type {
213+
return_string.push_str(string.as_str());
216214
};
217215

218216
if let Some(val) = &page.description {
@@ -499,4 +497,4 @@ impl PageArgs {
499497

500498
string
501499
}
502-
}
500+
}

0 commit comments

Comments
 (0)