by shepmaster · 1y ago · 0 comments
create_dir(path).context(CreateStagingDirectorySnafu { path })?;
Note a few points:1. No need to use the closure
2. No need to carry the source error over yourself (`context` does this for you)
3. No need to explicitly call `clone` on the path (`context` does this for you)
No comments yet.