mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-10 00:27:05 -06:00
chore: update to rust 1.85 (#242609)
This commit is contained in:
parent
7933f52914
commit
3331d2d87d
@ -1,7 +1,7 @@
|
||||
parameters:
|
||||
- name: channel
|
||||
type: string
|
||||
default: 1.81
|
||||
default: 1.85
|
||||
- name: targets
|
||||
default: []
|
||||
type: object
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
parameters:
|
||||
- name: channel
|
||||
type: string
|
||||
default: 1.81
|
||||
default: 1.85
|
||||
- name: targets
|
||||
default: []
|
||||
type: object
|
||||
|
||||
@ -665,12 +665,12 @@ impl Auth {
|
||||
.into();
|
||||
}
|
||||
|
||||
return StatusError {
|
||||
StatusError {
|
||||
body: String::from_utf8_lossy(&body).to_string(),
|
||||
status_code,
|
||||
url: url.to_string(),
|
||||
}
|
||||
.into();
|
||||
.into()
|
||||
}
|
||||
/// Implements the device code flow, returning the credentials upon success.
|
||||
async fn do_device_code_flow(&self) -> Result<StoredCredential, AnyError> {
|
||||
|
||||
@ -282,7 +282,7 @@ pub struct DownloadLogger<'a> {
|
||||
logger: &'a Logger,
|
||||
}
|
||||
|
||||
impl<'a> crate::util::io::ReportCopyProgress for DownloadLogger<'a> {
|
||||
impl crate::util::io::ReportCopyProgress for DownloadLogger<'_> {
|
||||
fn report_progress(&mut self, bytes_so_far: u64, total_bytes: u64) {
|
||||
if total_bytes > 0 {
|
||||
self.logger.emit(
|
||||
|
||||
@ -142,7 +142,7 @@ pub fn make_singleton_server(
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn start_singleton_server<'a>(
|
||||
pub async fn start_singleton_server(
|
||||
args: SingletonServerArgs<'_>,
|
||||
) -> Result<ServerTermination, AnyError> {
|
||||
let shutdown_rx = ShutdownRequest::create_rx([
|
||||
|
||||
@ -235,6 +235,7 @@ mod tests {
|
||||
.write(true)
|
||||
.read(true)
|
||||
.create(true)
|
||||
.truncate(true)
|
||||
.open(&file_path)
|
||||
.unwrap();
|
||||
|
||||
@ -271,6 +272,7 @@ mod tests {
|
||||
.write(true)
|
||||
.read(true)
|
||||
.create(true)
|
||||
.truncate(true)
|
||||
.open(&file_path)
|
||||
.unwrap();
|
||||
|
||||
@ -305,6 +307,7 @@ mod tests {
|
||||
.write(true)
|
||||
.read(true)
|
||||
.create(true)
|
||||
.truncate(true)
|
||||
.open(&file_path)
|
||||
.unwrap();
|
||||
let mut rng = rand::thread_rng();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user