From ffcc399d78029bd859ee86c15a894f4d5ad7c324 Mon Sep 17 00:00:00 2001 From: Raine Date: Mon, 4 Dec 2023 14:03:49 +0100 Subject: [PATCH] fix: remove recursion --- domo_lib/src/routing/endpoint.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/domo_lib/src/routing/endpoint.rs b/domo_lib/src/routing/endpoint.rs index 55d8be2..1e622c0 100644 --- a/domo_lib/src/routing/endpoint.rs +++ b/domo_lib/src/routing/endpoint.rs @@ -1,7 +1,5 @@ use crate::filter::Filter; pub trait Endpoint: Filter { - fn handle(&mut self, item: T) { - self.handle(item) - } + fn handle(&mut self, item: T); }