Skip to content

Using update on a filter with itself fails with "Already mutably borrowed" #19

@Ronserruya

Description

@Ronserruya

Calling update on a filter with itself crashes:

from rbloom import Bloom

b = Bloom(100, 0.01)
b.update(b)

RuntimeError: Already mutably borrowed

Came across this when testing some things regarding updates, obviously this is a minor issue since there's no real use case to do this in the first place, but it's probably not something that should crash, like a noop (or at least it should crash with a predictable exception)

Thank you for your work on this package :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions