Skip to content
Update rust error authored by umaumax's avatar umaumax
......@@ -267,3 +267,9 @@ fn main() -> Result<(), std::io::Error> {
Ok(())
}
```
## 型変換
### `Box<dyn std::error::Error>` to `anyhow::Error`
``` rust
box_error.map_err(|e| anyhow::anyhow!("{}", e))?;
```
\ No newline at end of file