From e68a9eb5e9e15372313f9017be4a2d58fb690bfc Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 11 Oct 2025 00:24:11 +0200 Subject: clippy + fmt; start using if let chains --- server/tools/src/diagram_dot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/tools/src/diagram_dot.rs') diff --git a/server/tools/src/diagram_dot.rs b/server/tools/src/diagram_dot.rs index 1701f4ab..307fa470 100644 --- a/server/tools/src/diagram_dot.rs +++ b/server/tools/src/diagram_dot.rs @@ -52,7 +52,7 @@ pub fn diagram_dot(data: &Gamedata, diagram: &Diagram, use_position: bool) -> Re if use_position { attrs.push(format!("pos=\"{},{}!\"", n.position.x, n.position.y)); } - node_style(&mut attrs, &n); + node_style(&mut attrs, n); match &n.label { Message::Text(text) => { attrs.push(format!("label=\"{text}\"")); -- cgit v1.3