Skip to content

Commit

Permalink
Generalise error
Browse files Browse the repository at this point in the history
  • Loading branch information
MissingNO57 committed Apr 15, 2024
1 parent 0e55e97 commit c48e619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn deps_with_creator(
deps
}

pub fn assert_err<T, E: std::fmt::Debug>(result: Result<T, E>, error: &E) {
pub fn assert_err<T, E: std::fmt::Debug, F: std::fmt::Debug>(result: Result<T, E>, error: &F) {
// Check if result contains specific error
match result {
Ok(_) => panic!("Expected Err, got Ok"),
Expand Down

0 comments on commit c48e619

Please sign in to comment.