♻️ Cambia Self::default() por Tipo::default()

This commit is contained in:
Manuel Cillero 2025-12-28 13:18:18 +01:00
parent 47c47ba9a0
commit 25d32ec5de
21 changed files with 69 additions and 68 deletions

View file

@ -91,7 +91,7 @@ impl StyleSheet {
///
/// Equivale a `<link rel="stylesheet" href="...">`.
pub fn from(path: impl Into<String>) -> Self {
StyleSheet {
Self {
source: Source::From(path.into()),
..Default::default()
}
@ -107,7 +107,7 @@ impl StyleSheet {
where
F: Fn(&mut Context) -> String + Send + Sync + 'static,
{
StyleSheet {
Self {
source: Source::Inline(name.into(), Box::new(f)),
..Default::default()
}