Remove redundant line (#2516)

* Remove redundant line

* No need to mut this value
This commit is contained in:
ThomasTNO 2024-09-08 02:37:23 +02:00 committed by GitHub
parent a5584bf23a
commit 70f1c13a4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -260,7 +260,7 @@ where
let observers = executor.observers();
let map = observers[&self.map_observer_handle].as_ref();
let mut bitmap_size = map.count_bytes();
let bitmap_size = map.count_bytes();
if bitmap_size < 1 {
return Err(Error::invalid_corpus(
@ -269,7 +269,6 @@ where
));
}
bitmap_size = bitmap_size.max(1); // just don't make it 0 because we take log2 of it later.
let psmeta = state
.metadata_map_mut()
.get_mut::<SchedulerMetadata>()