Skip to content

Commit

Permalink
Merge #390
Browse files Browse the repository at this point in the history
390: Work around clippy lint bug r=lnicola a=lnicola

- [x] I agree to follow the project's [code of conduct](https://github.com/georust/gdal/blob/master/CODE_OF_CONDUCT.md).
- [x] I added an entry to `CHANGES.md` if knowledge of this change could be valuable to users.
---

Unblocks #389.

Co-authored-by: Laurențiu Nicola <[email protected]>
  • Loading branch information
bors[bot] and lnicola authored Apr 24, 2023
2 parents b8ad047 + 2a33a6e commit 670401a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ mod tests {

#[test]
fn test_that_gdal_error_is_send() {
fn is_send<T: Send>() -> bool {
true
fn is_send<T: Send>() {
// https://github.com/rust-lang/rust-clippy/issues/10318
let _: [T; 0] = [];
}

assert!(is_send::<GdalError>());
is_send::<GdalError>();
}
}

0 comments on commit 670401a

Please sign in to comment.