Skip to content

Commit

Permalink
Fix ToString trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Aug 10, 2024
1 parent f06042e commit 6398986
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
26 changes: 25 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions packages/yew/src/html/classes.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::borrow::Cow;
use std::fmt::Display;
use std::iter::FromIterator;
use std::rc::Rc;

Expand Down Expand Up @@ -174,7 +173,7 @@ impl ToString for Classes {
iter.next()
.map(|first| build_attr_value(first, iter))
.unwrap_or_default()
.fmt(f)
.to_string()
}
}

Expand Down

0 comments on commit 6398986

Please sign in to comment.