Fixed outdated unstable `int_error_match` usage.

XXX: This version of `#[pin_project]` causes useless errors.

XXX: Why does `yield_now().await -> ()` give a `must_use` value??? It"s fucking `()`, ffs...

Fortune for leanify-many's current commit: Half curse − 半凶
master
Avril 2 days ago
parent 8616f0a0a9
commit 354cac4a50
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -6,6 +6,9 @@ fn main() {
// Assert we haven't travelled back in time // Assert we haven't travelled back in time
assert!(version().unwrap().major >= 1); assert!(version().unwrap().major >= 1);
println!("cargo::rustc-check-cfg=cfg(nightly)");
println!("cargo::rustc-check-cfg=cfg(stable)");
// Set cfg flags depending on release channel // Set cfg flags depending on release channel
match version_meta().unwrap().channel { match version_meta().unwrap().channel {
Channel::Stable => { Channel::Stable => {

@ -225,8 +225,8 @@ impl std::fmt::Display for Error
#[cfg(nightly)] return match _v { #[cfg(nightly)] return match _v {
IntErrorKind::Empty => write!(f, ": argument empty"), IntErrorKind::Empty => write!(f, ": argument empty"),
IntErrorKind::InvalidDigit => write!(f, ": invalid digit"), IntErrorKind::InvalidDigit => write!(f, ": invalid digit"),
IntErrorKind::Overflow => write!(f, ": conversion would result in overflow"), IntErrorKind::PosOverflow => write!(f, ": conversion would result in overflow"),
IntErrorKind::Underflow => write!(f, ": conversion would result in underflow"), IntErrorKind::NegOverflow => write!(f, ": conversion would result in underflow"),
IntErrorKind::Zero => write!(f, ": found zero"), IntErrorKind::Zero => write!(f, ": found zero"),
_=> Ok(()), _=> Ok(()),
}; };

@ -76,7 +76,7 @@ async fn _walk<P: AsRef<Path>+Send+Sync>(path: P, depth: usize, recurse: Option<
let child = tokio::spawn(async move { let child = tokio::spawn(async move {
(__walk(&dir, depth+1, recurse, sem, output).await, dir) (__walk(&dir, depth+1, recurse, sem, output).await, dir)
}.boxed()); }.boxed());
task::yield_now().await; let _ = task::yield_now().await;
child child
}); });
} }

@ -1,6 +1,4 @@
#![cfg_attr(nightly, feature(int_error_matching))]
#![cfg_attr(nightly, feature(linked_list_remove))] #![cfg_attr(nightly, feature(linked_list_remove))]
#![cfg_attr(nightly, feature(const_fn))]
#![cfg_attr(nightly, feature(never_type))] #![cfg_attr(nightly, feature(never_type))]

@ -106,7 +106,7 @@ where U: IntoIterator<Item=V>,
} }
} }
}); });
task::yield_now().await; let _ = task::yield_now().await;
match child.await { match child.await {
Ok(exit) => { Ok(exit) => {
if exit.success() { if exit.success() {

@ -89,7 +89,7 @@ async fn do_work(process: impl AsRef<Process>, file: impl AsRef<OsStr>, mut prog
stack stack
}) })
}; };
tokio::task::yield_now().await; let _ = tokio::task::yield_now().await;
//let _ = opt_await.await; //let _ = opt_await.await;
match process::contained_spawn(process, std::iter::once(file), tx).await { match process::contained_spawn(process, std::iter::once(file), tx).await {
Ok(_) => Ok(collector.await.expect("Child panic").into_iter()), Ok(_) => Ok(collector.await.expect("Child panic").into_iter()),

Loading…
Cancel
Save