From 0f370276462460602c06af8593317b0a80ed33d1 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Fri, 8 Dec 2023 12:56:15 +0900 Subject: [PATCH] index: remove unneeded Any trait bound from MutableIndex We use .as_any() to downcast to the backend impl instead. --- lib/src/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/index.rs b/lib/src/index.rs index 8bc6023eb..cf8514e61 100644 --- a/lib/src/index.rs +++ b/lib/src/index.rs @@ -78,7 +78,7 @@ pub trait ReadonlyIndex: Send + Sync { fn start_modification(&self) -> Box; } -pub trait MutableIndex: Any { +pub trait MutableIndex { fn as_any(&self) -> &dyn Any; fn into_any(self: Box) -> Box;