Skip to content

Commit

Permalink
index: remove unneeded Any trait bound from MutableIndex
Browse files Browse the repository at this point in the history
We use .as_any() to downcast to the backend impl instead.
  • Loading branch information
yuja committed Dec 8, 2023
1 parent d77dae4 commit 0f37027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub trait ReadonlyIndex: Send + Sync {
fn start_modification(&self) -> Box<dyn MutableIndex>;
}

pub trait MutableIndex: Any {
pub trait MutableIndex {
fn as_any(&self) -> &dyn Any;

fn into_any(self: Box<Self>) -> Box<dyn Any>;
Expand Down

0 comments on commit 0f37027

Please sign in to comment.