diff --git a/examples/todomvc/src/main.rs b/examples/todomvc/src/main.rs
index 202480529..4cd1aed36 100644
--- a/examples/todomvc/src/main.rs
+++ b/examples/todomvc/src/main.rs
@@ -73,7 +73,7 @@ impl Component for App {
.filter(|e| self.state.filter.fits(e))
.nth(idx)
.unwrap();
- self.state.edit_value = entry.description.clone();
+ self.state.edit_value.clone_from(&entry.description);
self.state.clear_all_edit();
self.state.toggle_edit(idx);
}
diff --git a/packages/yew-macro/src/html_tree/lint/mod.rs b/packages/yew-macro/src/html_tree/lint/mod.rs
index bbb34f246..82b0c351f 100644
--- a/packages/yew-macro/src/html_tree/lint/mod.rs
+++ b/packages/yew-macro/src/html_tree/lint/mod.rs
@@ -12,6 +12,7 @@ use crate::props::{ElementProps, Prop};
/// use `proc-macro-error` (and the `emit_warning!` macro) to produce a warning. At present, these
/// are only emitted on nightly.
pub trait Lint {
+ #[cfg_attr(not(yew_lints), allow(dead_code))]
fn lint(element: &HtmlElement);
}
diff --git a/packages/yew-router/src/utils.rs b/packages/yew-router/src/utils.rs
index ba3567017..588e7d5ba 100644
--- a/packages/yew-router/src/utils.rs
+++ b/packages/yew-router/src/utils.rs
@@ -8,7 +8,7 @@ pub(crate) fn strip_slash_suffix(path: &str) -> &str {
static BASE_URL_LOADED: std::sync::Once = std::sync::Once::new();
thread_local! {
- static BASE_URL: RefCell