Skip to content

Commit 83abccc

Browse files
committed
fix: fmt
1 parent 821102d commit 83abccc

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl Error {
2525
pub fn http(status: StatusCode, body: String) -> Error {
2626
Error {
2727
kind: ErrorKind::FlagsmithAPIError,
28-
msg: format!("HTTP Api error: {status}, {body}")
28+
msg: format!("HTTP Api error: {status}, {body}"),
2929
}
3030
}
3131
}

tests/integration_test.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,16 @@ fn test_flagsmith_api_error_is_returned_if_something_goes_wrong_with_the_request
727727

728728
// Then: the error carries the HTTP status and the response body
729729
assert_eq!(err.kind, flagsmith::error::ErrorKind::FlagsmithAPIError);
730-
assert!(err.msg.contains("502 Bad Gateway"), "unexpected msg: {}", err.msg);
731-
assert!(err.msg.contains("bad gateway"), "unexpected msg: {}", err.msg);
730+
assert!(
731+
err.msg.contains("502 Bad Gateway"),
732+
"unexpected msg: {}",
733+
err.msg
734+
);
735+
assert!(
736+
err.msg.contains("bad gateway"),
737+
"unexpected msg: {}",
738+
err.msg
739+
);
732740
}
733741

734742
#[rstest]

0 commit comments

Comments
 (0)