mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
ci: detect trailing whitespace (#7013)
This commit is contained in:
@@ -142,7 +142,7 @@ impl UnixStream {
|
||||
/// // if the readiness event is a false positive.
|
||||
/// match stream.try_read(&mut data) {
|
||||
/// Ok(n) => {
|
||||
/// println!("read {} bytes", n);
|
||||
/// println!("read {} bytes", n);
|
||||
/// }
|
||||
/// Err(ref e) if e.kind() == io::ErrorKind::WouldBlock => {
|
||||
/// continue;
|
||||
|
||||
@@ -706,11 +706,11 @@ impl Builder {
|
||||
///
|
||||
/// This *does not* support [`LocalSet`](crate::task::LocalSet) at this time.
|
||||
///
|
||||
/// **Note**: This is an [unstable API][unstable]. The public API of this type
|
||||
/// may break in 1.x releases. See [the documentation on unstable
|
||||
/// features][unstable] for details.
|
||||
///
|
||||
/// [unstable]: crate#unstable-features
|
||||
/// **Note**: This is an [unstable API][unstable]. The public API of this type
|
||||
/// may break in 1.x releases. See [the documentation on unstable
|
||||
/// features][unstable] for details.
|
||||
///
|
||||
/// [unstable]: crate#unstable-features
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@@ -755,11 +755,11 @@ impl Builder {
|
||||
///
|
||||
/// This *does not* support [`LocalSet`](crate::task::LocalSet) at this time.
|
||||
///
|
||||
/// **Note**: This is an [unstable API][unstable]. The public API of this type
|
||||
/// may break in 1.x releases. See [the documentation on unstable
|
||||
/// features][unstable] for details.
|
||||
///
|
||||
/// [unstable]: crate#unstable-features
|
||||
/// **Note**: This is an [unstable API][unstable]. The public API of this type
|
||||
/// may break in 1.x releases. See [the documentation on unstable
|
||||
/// features][unstable] for details.
|
||||
///
|
||||
/// [unstable]: crate#unstable-features
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
||||
@@ -16,11 +16,11 @@ pub(crate) struct TaskHooks {
|
||||
|
||||
/// Task metadata supplied to user-provided hooks for task events.
|
||||
///
|
||||
/// **Note**: This is an [unstable API][unstable]. The public API of this type
|
||||
/// may break in 1.x releases. See [the documentation on unstable
|
||||
/// features][unstable] for details.
|
||||
///
|
||||
/// [unstable]: crate#unstable-features
|
||||
/// **Note**: This is an [unstable API][unstable]. The public API of this type
|
||||
/// may break in 1.x releases. See [the documentation on unstable
|
||||
/// features][unstable] for details.
|
||||
///
|
||||
/// [unstable]: crate#unstable-features
|
||||
#[allow(missing_debug_implementations)]
|
||||
#[cfg_attr(not(tokio_unstable), allow(unreachable_pub))]
|
||||
pub struct TaskMeta<'a> {
|
||||
|
||||
@@ -395,9 +395,9 @@ impl<T: 'static> JoinSet<T> {
|
||||
/// tokio::time::sleep(Duration::from_secs(3 - i)).await;
|
||||
/// i
|
||||
/// });
|
||||
/// }
|
||||
/// }
|
||||
///
|
||||
/// let output = set.join_all().await;
|
||||
/// let output = set.join_all().await;
|
||||
/// assert_eq!(output, vec![2, 1, 0]);
|
||||
/// }
|
||||
/// ```
|
||||
@@ -414,8 +414,8 @@ impl<T: 'static> JoinSet<T> {
|
||||
///
|
||||
/// for i in 0..3 {
|
||||
/// set.spawn(async move {i});
|
||||
/// }
|
||||
///
|
||||
/// }
|
||||
///
|
||||
/// let mut output = Vec::new();
|
||||
/// while let Some(res) = set.join_next().await{
|
||||
/// match res {
|
||||
|
||||
Reference in New Issue
Block a user