Skip to content

Commit

Permalink
Fix formatting for anyhow! macro call
Browse files Browse the repository at this point in the history
  • Loading branch information
ibilalkayy committed Dec 19, 2024
1 parent a4ef98c commit c0efcc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cargo/ops/cargo_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ pub fn doc(ws: &Workspace<'_>, options: &DocOptions) -> CargoResult<()> {

if options.open_result {
let name = &compilation.root_crate_names.get(0).ok_or_else(|| {
anyhow::anyhow!("cannot open specified crate's documentation: no documentation generated")
anyhow::anyhow!(
"cannot open specified crate's documentation: no documentation generated"
)
})?;
let kind = options.compile_opts.build_config.single_requested_kind()?;

Expand Down

0 comments on commit c0efcc6

Please sign in to comment.