filter/mod: fix mutability

This commit is contained in:
Zhiming Wang 2018-09-10 16:22:28 -04:00
parent 2c5abbfe33
commit e9870589b6
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8

View File

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