From c6c8c66a978b8329ae2208fba782788100487392 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sun, 24 Aug 2025 10:09:22 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20[html]=20Implementa=20`Default`?= =?UTF-8?q?=20en=20`Context`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/html/context.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/html/context.rs b/src/html/context.rs index 72c0ff2..9678786 100644 --- a/src/html/context.rs +++ b/src/html/context.rs @@ -117,6 +117,12 @@ pub struct Context { id_counter : usize, // Contador para generar identificadores Ășnicos. } +impl Default for Context { + fn default() -> Self { + Context::new(None) + } +} + impl Context { /// Crea un nuevo contexto asociado a una solicitud HTTP. ///