Stylistically, this if/else should look like:

```rust
if contains_nul(s) {
    None
} else {
    Some(...)
}
```