chore: update to rust 1.85 (#242609)

This commit is contained in:
Connor Peet 2025-03-04 12:58:23 -08:00 committed by GitHub
parent 7933f52914
commit 3331d2d87d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 9 additions and 6 deletions

View File

@ -1,7 +1,7 @@
parameters:
- name: channel
type: string
default: 1.81
default: 1.85
- name: targets
default: []
type: object

View File

@ -1,7 +1,7 @@
parameters:
- name: channel
type: string
default: 1.81
default: 1.85
- name: targets
default: []
type: object

View File

@ -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> {

View File

@ -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(

View File

@ -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([

View File

@ -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();