Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhou121 committed Mar 23, 2024
1 parent b8b17ad commit 37903ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/context/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fn app_view() -> impl View {
colored_label(String::from("app_view")),
context_container(Color::HOT_PINK, String::from("Nested context 1"), || {
context_container(Color::BLUE, String::from("Nested context 2"), || {
context_container(Color::GREEN, String::from("Nested context 3"), || empty())
context_container(Color::GREEN, String::from("Nested context 3"), empty)
})
}),
))
Expand Down
6 changes: 2 additions & 4 deletions examples/syntax-editor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,8 @@ impl<'a> Styling for SyntaxHighlightingStyle<'a> {
&ops,
&text,
&self.highlighter,
)
.into_iter()
{
let mut attr = default.clone();
) {
let mut attr = default;
if style.font_style.contains(FontStyle::ITALIC) {
attr.style = Style::Italic;
}
Expand Down

0 comments on commit 37903ea

Please sign in to comment.