filter/mod: fix mutability

This commit is contained in:
Zhiming Wang
2018-09-10 16:22:28 -04:00
parent 2c5abbfe33
commit e9870589b6

View File

@ -54,7 +54,7 @@ pub fn find(name: &str) -> Option<Filter> {
if ptr.is_null() { if ptr.is_null() {
None None
} else { } else {
Some(Filter::wrap(ptr)) Some(Filter::wrap(ptr as *mut _))
} }
} }
} }