(&self)
| 175 | } |
| 176 | |
| 177 | pub fn ensure_allow_precompiled(&self) -> Result<()> { |
| 178 | if self.allow_precompiled { |
| 179 | Ok(()) |
| 180 | } else { |
| 181 | bail!("running a precompiled module requires the `--allow-precompiled` flag") |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | #[cfg(feature = "component-model")] |
| 186 | fn ensure_allow_components(&self) -> Result<()> { |
no test coverage detected