Bump to Rust 1.83 (#4604)

This commit is contained in:
Adam Chalmers
2024-11-28 12:31:11 -06:00
committed by GitHub
parent dd052b35fd
commit 0548409da0
5 changed files with 4 additions and 5 deletions

View File

@ -1181,7 +1181,7 @@ impl Node<ImportItem> {
self.alias = Some(Identifier::new(new_name)); self.alias = Some(Identifier::new(new_name));
} }
// Return implicit name. // Return implicit name.
return Some(self.identifier().to_owned()); Some(self.identifier().to_owned())
} }
} }
} }

View File

@ -37,7 +37,7 @@ impl<'a> FunctionParam<'a> {
} }
} }
impl<'a> JsonSchema for FunctionParam<'a> { impl JsonSchema for FunctionParam<'_> {
fn schema_name() -> String { fn schema_name() -> String {
"FunctionParam".to_owned() "FunctionParam".to_owned()
} }

View File

@ -107,7 +107,7 @@ impl<'a> LogPerfStats<'a> {
} }
} }
impl<'a> Drop for LogPerfStats<'a> { impl Drop for LogPerfStats<'_> {
fn drop(&mut self) { fn drop(&mut self) {
if !self.cancelled { if !self.cancelled {
self.log_now(); self.log_now();

View File

@ -24,7 +24,6 @@ use crate::{
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)] #[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
#[ts(export)] #[ts(export)]
#[serde(untagged)] #[serde(untagged)]
pub enum SketchOrSurface { pub enum SketchOrSurface {
SketchSurface(SketchSurface), SketchSurface(SketchSurface),
Sketch(Box<Sketch>), Sketch(Box<Sketch>),

View File

@ -1,3 +1,3 @@
[toolchain] [toolchain]
channel = "1.82.0" channel = "1.83.0"
components = ["clippy", "rustfmt"] components = ["clippy", "rustfmt"]