🎨 Unifica conversiones a String con to_string()

Como `String::from()` y `.to_string()` son equivalentes, se sustituyen
todas las ocurrencias de `String::from()` por `to_string()` para mayor
coherencia y legibilidad.
This commit is contained in:
Manuel Cillero 2025-09-11 19:03:34 +02:00
parent 2a4d6a7890
commit ddf78c2de8
12 changed files with 29 additions and 29 deletions

View file

@ -17,7 +17,7 @@ async fn component_html_renders_static_markup() {
#[pagetop::test]
async fn component_html_renders_using_context_param() {
let mut cx = Context::new(None).with_param("username", String::from("Alice"));
let mut cx = Context::new(None).with_param("username", "Alice".to_string());
let component = Html::with(|cx| {
let name = cx.param::<String>("username").cloned().unwrap_or_default();