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));
}
// 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 {
"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) {
if !self.cancelled {
self.log_now();

View File

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

View File

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