Skip to content

Commit f6732d3

Browse files
committed
refactored layout and layouttemplate generation using a proc macro
Signed-off-by: Andrei Gherghescu <[email protected]>
1 parent 6ce5aaa commit f6732d3

File tree

6 files changed

+151
-302
lines changed

6 files changed

+151
-302
lines changed

plotly/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ rand = "0.9"
4040
getrandom = { version = "0.3", features = ["wasm_js"] }
4141
wasm-bindgen-futures = { version = "0.4" }
4242
wasm-bindgen = { version = "0.2" }
43-
serde-wasm-bindgen = {version = "0.6.3"}
44-
web-sys = { version = "0.3.77", features = ["Document", "Window", "HtmlElement"]}
43+
serde-wasm-bindgen = { version = "0.6.3" }
44+
web-sys = { version = "0.3.77", features = [
45+
"Document",
46+
"Window",
47+
"HtmlElement",
48+
] }
4549

4650
[dev-dependencies]
4751
csv = "1.1"

plotly/src/layout/mapbox.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ impl Mapbox {
7373

7474
#[cfg(test)]
7575
mod tests {
76-
use super::*;
7776
use serde_json::{json, to_value};
7877

78+
use super::*;
79+
7980
#[test]
8081
#[rustfmt::skip]
8182
fn serialize_mapbox_style() {

0 commit comments

Comments
 (0)