Skip to content

Commit

Permalink
Update derive_more
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Sep 26, 2024
1 parent a9aa8bc commit 8ac0c79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ cfg_aliases = { version = "0.2.0" }
clap = { version = "4.0", features = ["derive", "wrap_help"] }
clru = { version = "0.6.0" }
css-color-parser2 = { version = "1.0.1" }
derive_more = { version = "0.99.17" }
derive_more = { version = "1.0.0", default-features = false, features = ["deref", "deref_mut", "into", "from", "add", "add_assign", "mul", "not", "display"] }
euclid = { version = "0.22.1", default-features = false }
fontdb = { version = "0.18.0", default-features = false }
fontdue = { version = "0.9.0" }
Expand Down
5 changes: 2 additions & 3 deletions internal/compiler/generator/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2139,10 +2139,9 @@ fn compile_expression(expr: &Expression, ctx: &EvaluationContext) -> TokenStream
Expression::Array { element_ty: _, values, as_model: _ } => values
.iter()
.map(|path_elem_expr|
// Close{} is a struct with no fields in markup, and PathElement::Close has no fields, so map to an empty token stream
// and thus later just unit type, which can convert into PathElement::Close.
// Close{} is a struct with no fields in markup, and PathElement::Close has no fields
if matches!(path_elem_expr, Expression::Struct { ty: Type::Struct { fields, .. }, .. } if fields.is_empty()) {
::core::default::Default::default()
quote!(sp::PathElement::Close)
} else {
compile_expression(path_elem_expr, ctx)
}
Expand Down
3 changes: 1 addition & 2 deletions internal/compiler/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,8 @@ macro_rules! declare_syntax {

pub mod syntax_nodes {
use super::*;
use derive_more::*;
$(
#[derive(Debug, Clone, Deref, Into)]
#[derive(Debug, Clone, derive_more::Deref, derive_more::Into)]
pub struct $nodekind(SyntaxNode);
#[cfg(test)]
impl SyntaxNodeVerify for $nodekind {
Expand Down

0 comments on commit 8ac0c79

Please sign in to comment.