forked from ROMEO/nexosim
Satisfy newest clippy
This commit is contained in:
parent
a24e5df62e
commit
e4b108c6b7
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
rust:
|
rust:
|
||||||
- stable
|
- stable
|
||||||
- 1.75.0
|
- 1.77.0
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -9,7 +9,7 @@ name = "asynchronix"
|
|||||||
authors = ["Serge Barral <serge.barral@asynchronics.com>"]
|
authors = ["Serge Barral <serge.barral@asynchronics.com>"]
|
||||||
version = "0.2.2"
|
version = "0.2.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.75"
|
rust-version = "1.77.0"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
repository = "https://github.com/asynchronics/asynchronix"
|
repository = "https://github.com/asynchronics/asynchronix"
|
||||||
readme = "../README.md"
|
readme = "../README.md"
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
// Prevent warnings when checking for flag `asynchronix_loom`.
|
||||||
|
println!("cargo::rustc-check-cfg=cfg(asynchronix_loom)");
|
||||||
|
|
||||||
#[cfg(feature = "rpc-codegen")]
|
#[cfg(feature = "rpc-codegen")]
|
||||||
let builder = tonic_build::configure()
|
let builder = tonic_build::configure()
|
||||||
.build_client(false)
|
.build_client(false)
|
||||||
|
@ -25,7 +25,7 @@ struct VTable {
|
|||||||
/// but not currently scheduled (no `Runnable` exist) then the future is
|
/// but not currently scheduled (no `Runnable` exist) then the future is
|
||||||
/// dropped immediately. Otherwise, the future will be dropped at a later
|
/// dropped immediately. Otherwise, the future will be dropped at a later
|
||||||
/// time by the scheduled `Runnable` once it runs.
|
/// time by the scheduled `Runnable` once it runs.
|
||||||
unsafe fn cancel<F: Future, S, T>(ptr: *const ())
|
unsafe fn cancel<F, S, T>(ptr: *const ())
|
||||||
where
|
where
|
||||||
F: Future + Send + 'static,
|
F: Future + Send + 'static,
|
||||||
F::Output: Send + 'static,
|
F::Output: Send + 'static,
|
||||||
@ -123,7 +123,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Drops the token without cancelling the task.
|
/// Drops the token without cancelling the task.
|
||||||
unsafe fn drop<F: Future, S, T>(ptr: *const ())
|
unsafe fn drop<F, S, T>(ptr: *const ())
|
||||||
where
|
where
|
||||||
F: Future + Send + 'static,
|
F: Future + Send + 'static,
|
||||||
F::Output: Send + 'static,
|
F::Output: Send + 'static,
|
||||||
@ -180,7 +180,7 @@ impl CancelToken {
|
|||||||
/// allocator,
|
/// allocator,
|
||||||
/// - the reference count has been incremented to account for this new task
|
/// - the reference count has been incremented to account for this new task
|
||||||
/// reference.
|
/// reference.
|
||||||
pub(super) unsafe fn new_unchecked<F: Future, S, T>(task: *const Task<F, S, T>) -> Self
|
pub(super) unsafe fn new_unchecked<F, S, T>(task: *const Task<F, S, T>) -> Self
|
||||||
where
|
where
|
||||||
F: Future + Send + 'static,
|
F: Future + Send + 'static,
|
||||||
F::Output: Send + 'static,
|
F::Output: Send + 'static,
|
||||||
|
@ -20,7 +20,7 @@ struct VTable<U: Send + 'static> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Retrieves the output of the task if ready.
|
/// Retrieves the output of the task if ready.
|
||||||
unsafe fn poll<F: Future, S, T>(ptr: *const ()) -> Stage<F::Output>
|
unsafe fn poll<F, S, T>(ptr: *const ()) -> Stage<F::Output>
|
||||||
where
|
where
|
||||||
F: Future + Send + 'static,
|
F: Future + Send + 'static,
|
||||||
F::Output: Send + 'static,
|
F::Output: Send + 'static,
|
||||||
@ -62,7 +62,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Drops the promise.
|
/// Drops the promise.
|
||||||
unsafe fn drop<F: Future, S, T>(ptr: *const ())
|
unsafe fn drop<F, S, T>(ptr: *const ())
|
||||||
where
|
where
|
||||||
F: Future + Send + 'static,
|
F: Future + Send + 'static,
|
||||||
F::Output: Send + 'static,
|
F::Output: Send + 'static,
|
||||||
|
@ -22,7 +22,7 @@ struct VTable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Polls the inner future.
|
/// Polls the inner future.
|
||||||
unsafe fn run<F: Future, S, T>(ptr: *const ())
|
unsafe fn run<F, S, T>(ptr: *const ())
|
||||||
where
|
where
|
||||||
F: Future + Send + 'static,
|
F: Future + Send + 'static,
|
||||||
F::Output: Send + 'static,
|
F::Output: Send + 'static,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user