mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
Fix misused anyhow! macro
Was msising a return, which bail! includes
This commit is contained in:
parent
30f8f04dcf
commit
2b9b938327
@ -1,5 +1,5 @@
|
|||||||
use crate::flags::Bindgen;
|
use crate::flags::Bindgen;
|
||||||
use anyhow::{anyhow, Context, Result};
|
use anyhow::{anyhow, Context, Result, bail};
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
|
||||||
impl Bindgen {
|
impl Bindgen {
|
||||||
@ -140,7 +140,7 @@ fn generate_binding_file(
|
|||||||
eprintln!("Executing bindgen [output = {}]", output.display());
|
eprintln!("Executing bindgen [output = {}]", output.display());
|
||||||
let status = cmd.status().context("Failed to execute bindgen")?;
|
let status = cmd.status().context("Failed to execute bindgen")?;
|
||||||
if !status.success() {
|
if !status.success() {
|
||||||
anyhow!(
|
bail!(
|
||||||
"Failed to execute bindgen: {}, see output for details",
|
"Failed to execute bindgen: {}, see output for details",
|
||||||
status
|
status
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user