Merge remote-tracking branch 'origin/main' into connor4312/cli-self-update

This commit is contained in:
Connor Peet
2022-10-14 14:23:41 -07:00
1157 changed files with 24741 additions and 16508 deletions

View File

@@ -26,7 +26,7 @@ where
e,
format!(
"failed to execute command '{}'",
(&command_str).as_ref().to_string_lossy()
command_str.as_ref().to_string_lossy()
),
)
})

View File

@@ -19,9 +19,7 @@ where
/// Waits for the barrier to be closed, returning a value if one was sent.
pub async fn wait(&mut self) -> Result<T, RecvError> {
loop {
if let Err(e) = self.0.changed().await {
return Err(e);
}
self.0.changed().await?;
if let Some(v) = *(self.0.borrow()) {
return Ok(v);