message: feat(wasi) Replace `for` loop + `match` by `if` + `Iterator::all`.
diff: @@ -78,16 +78,11 @@ pub enum WasiStateCreationError {
  }
  fn validate_mapped_dir_alias(alias: &str) -> Result<(), WasiStateCreationError> {
  - for byte in alias.bytes() {
  - match byte {
  - b'\0' => {
  + if !alias.bytes().all(|b| b != b'\0') {
  return Err(WasiStateCreationError::MappedDirAliasFormattingError(
  format!("Alias \"{}\" contains a nul byte", alias),
  ));
  }
  - _ => (),
  - }
  - }
  Ok(())
  }
  