chore: run cargo update (#295062)

This commit is contained in:
Raymond Zhao
2026-02-13 10:58:40 -08:00
committed by GitHub
parent 0165d77665
commit 965d950c25
4 changed files with 1218 additions and 657 deletions

View File

@@ -86,7 +86,7 @@ jobs:
uses: ./.github/workflows/pr-linux-cli-test.yml
with:
job_name: CLI
rustup_toolchain: 1.85
rustup_toolchain: 1.88
linux-electron-tests:
name: Linux

1867
cli/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -69,7 +69,7 @@ pub async fn start_json_rpc<C: Send + Sync + 'static, S: Clone>(
n = read.read_line(&mut read_buf) => {
let r = match n {
Ok(0) => return Ok(None),
Ok(n) => dispatcher.dispatch(read_buf[..n].as_bytes()),
Ok(n) => dispatcher.dispatch(&read_buf.as_bytes()[..n]),
Err(e) => return Err(e)
};

View File

@@ -66,7 +66,7 @@ impl SimpleResponse {
pub fn url_path_basename(&self) -> Option<String> {
self.url.as_ref().and_then(|u| {
u.path_segments()
.and_then(|s| s.last().map(|s| s.to_owned()))
.and_then(|mut s| s.next_back().map(|s| s.to_owned()))
})
}
}
@@ -176,7 +176,7 @@ impl SimpleHttp for ReqwestSimpleHttp {
url: Some(res.url().clone()),
read: Box::pin(
res.bytes_stream()
.map_err(|e| futures::io::Error::new(futures::io::ErrorKind::Other, e))
.map_err(futures::io::Error::other)
.into_async_read()
.compat(),
),