mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-14 23:18:36 +00:00
chore: run cargo update (#295062)
This commit is contained in:
2
.github/workflows/pr.yml
vendored
2
.github/workflows/pr.yml
vendored
@@ -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
1867
cli/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||
};
|
||||
|
||||
|
||||
@@ -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(),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user