Skip to content

Commit

Permalink
fix negative impl assertion on 1.60+
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Mar 10, 2022
1 parent 1fd90f0 commit 745e738
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions actix-files/src/named.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,10 @@ impl NamedFile {
Self::from_file(file, path)
}

#[allow(rustdoc::broken_intra_doc_links)]
/// Attempts to open a file asynchronously in read-only mode.
///
/// When the `experimental-io-uring` crate feature is enabled, this will be async.
/// Otherwise, it will be just like [`open`][Self::open].
/// When the `experimental-io-uring` crate feature is enabled, this will be async. Otherwise, it
/// will behave just like `open`.
///
/// # Examples
/// ```
Expand Down
1 change: 1 addition & 0 deletions actix-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ memchr = "2.4"
once_cell = "1.9"
rcgen = "0.8"
regex = "1.3"
rustversion = "1"
rustls-pemfile = "0.2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand Down
3 changes: 3 additions & 0 deletions actix-http/src/h1/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ mod tests {
assert_not_impl_any!(Payload: Send, Sync, UnwindSafe, RefUnwindSafe);

assert_impl_all!(Inner: Unpin, Send, Sync);
#[rustversion::before(1.60)]
assert_not_impl_any!(Inner: UnwindSafe, RefUnwindSafe);
#[rustversion::since(1.60)]
assert_impl_all!(Inner: UnwindSafe, RefUnwindSafe);

#[actix_rt::test]
async fn test_unread_data() {
Expand Down

0 comments on commit 745e738

Please sign in to comment.