Skip to content

Commit

Permalink
Change unwrap to except.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Jun 17, 2023
1 parent 31dcb00 commit 831c6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/clang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ impl UnsavedFile {
let x = CXUnsavedFile {
Filename: name.as_ptr(),
Contents: contents.as_ptr(),
Length: contents.as_bytes().len().try_into().unwrap(),
Length: contents.as_bytes().len().try_into().expect("contents too big"),
};
UnsavedFile { x, name, contents }
}
Expand Down

0 comments on commit 831c6d7

Please sign in to comment.