mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
clippy fix
This commit is contained in:
parent
0104866203
commit
90ffcc0a1c
3 changed files with 3 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -649,7 +649,7 @@ checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "haze"
|
name = "haze"
|
||||||
version = "1.5.0"
|
version = "1.6.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"atty",
|
"atty",
|
||||||
|
|
|
||||||
|
|
@ -550,7 +550,7 @@ impl Cloud {
|
||||||
.collect();
|
.collect();
|
||||||
let mut service_ids: Vec<String> = services
|
let mut service_ids: Vec<String> = services
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|service| service.names.as_ref()?.first().map(String::clone))
|
.filter_map(|service| service.names.as_ref()?.first().cloned())
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
let pinned = (info
|
let pinned = (info
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ pub async fn exec_tty<S1: AsRef<str>, S2: Into<String>, Env: Into<String>>(
|
||||||
let mut stdin = async_stdin().bytes();
|
let mut stdin = async_stdin().bytes();
|
||||||
loop {
|
loop {
|
||||||
if let Some(Ok(byte)) = stdin.next() {
|
if let Some(Ok(byte)) = stdin.next() {
|
||||||
input.write(&[byte]).await.ok();
|
input.write_all(&[byte]).await.ok();
|
||||||
} else {
|
} else {
|
||||||
sleep(Duration::from_nanos(10)).await;
|
sleep(Duration::from_nanos(10)).await;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue