Upgrade to Rust 1.87 (#7346)
I ignored some new clippy lints about large differences between enum variants. We can always revisit these later (the compiler suggests boxing them so that the enum variants are similar size)
This commit is contained in:
@ -67,6 +67,7 @@ pub struct TcpRead {
|
|||||||
|
|
||||||
/// Occurs when client couldn't read from the WebSocket to the engine.
|
/// Occurs when client couldn't read from the WebSocket to the engine.
|
||||||
// #[derive(Debug)]
|
// #[derive(Debug)]
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
pub enum WebSocketReadError {
|
pub enum WebSocketReadError {
|
||||||
/// Could not read a message due to WebSocket errors.
|
/// Could not read a message due to WebSocket errors.
|
||||||
Read(tokio_tungstenite::tungstenite::Error),
|
Read(tokio_tungstenite::tungstenite::Error),
|
||||||
|
@ -1351,7 +1351,7 @@ pub(crate) async fn execute_pipe_body(
|
|||||||
// Now that we've evaluated the first child expression in the pipeline, following child expressions
|
// Now that we've evaluated the first child expression in the pipeline, following child expressions
|
||||||
// should use the previous child expression for %.
|
// should use the previous child expression for %.
|
||||||
// This means there's no more need for the previous pipe_value from the parent AST node above this one.
|
// This means there's no more need for the previous pipe_value from the parent AST node above this one.
|
||||||
let previous_pipe_value = std::mem::replace(&mut exec_state.mod_local.pipe_value, Some(output));
|
let previous_pipe_value = exec_state.mod_local.pipe_value.replace(output);
|
||||||
// Evaluate remaining elements.
|
// Evaluate remaining elements.
|
||||||
let result = inner_execute_pipe_body(exec_state, body, ctx).await;
|
let result = inner_execute_pipe_body(exec_state, body, ctx).await;
|
||||||
// Restore the previous pipe value.
|
// Restore the previous pipe value.
|
||||||
|
@ -24,6 +24,7 @@ type Point3D = kcmc::shared::Point3d<f64>;
|
|||||||
#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
|
#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
|
||||||
#[ts(export)]
|
#[ts(export)]
|
||||||
#[serde(tag = "type")]
|
#[serde(tag = "type")]
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
pub enum Geometry {
|
pub enum Geometry {
|
||||||
Sketch(Sketch),
|
Sketch(Sketch),
|
||||||
Solid(Solid),
|
Solid(Solid),
|
||||||
@ -52,6 +53,7 @@ impl Geometry {
|
|||||||
#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
|
#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
|
||||||
#[ts(export)]
|
#[ts(export)]
|
||||||
#[serde(tag = "type")]
|
#[serde(tag = "type")]
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
pub enum GeometryWithImportedGeometry {
|
pub enum GeometryWithImportedGeometry {
|
||||||
Sketch(Sketch),
|
Sketch(Sketch),
|
||||||
Solid(Solid),
|
Solid(Solid),
|
||||||
|
@ -454,7 +454,7 @@ impl Node<Program> {
|
|||||||
alpha: c.a,
|
alpha: c.a,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
if colors.borrow().iter().any(|c| *c == color) {
|
if colors.borrow().contains(&color) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
colors.borrow_mut().push(color);
|
colors.borrow_mut().push(color);
|
||||||
|
@ -21,6 +21,7 @@ use crate::{
|
|||||||
#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
|
#[derive(Debug, Clone, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
|
||||||
#[ts(export)]
|
#[ts(export)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
pub enum SweepPath {
|
pub enum SweepPath {
|
||||||
Sketch(Sketch),
|
Sketch(Sketch),
|
||||||
Helix(Box<Helix>),
|
Helix(Box<Helix>),
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "1.86"
|
channel = "1.87"
|
||||||
components = ["clippy", "rustfmt"]
|
components = ["clippy", "rustfmt"]
|
||||||
|
Reference in New Issue
Block a user