🚨 Fix clippy warnings

This commit is contained in:
2024-03-30 18:24:04 +01:00
parent 448b81b65d
commit 83fe388e8d
6 changed files with 73 additions and 68 deletions

View File

@@ -186,9 +186,7 @@ pub fn Modal<'a>(cx: Scope<'a, ModalProps<'a>>) -> Element<'a> {
Severity::Critical => ErrorButton,
};
if figure.is_none() {
return None;
}
figure.as_ref()?;
cx.render(rsx! {
style { STYLE_SHEET },