Skip to content

Commit 70f9d80

Browse files
committed
Refactor code formatting and remove extraneous whitespace.
Cleaned up unnecessary blank lines and adjusted minor formatting issues to improve code readability and maintain consistency. No functional changes were made.
1 parent 62379e9 commit 70f9d80

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

plotly/src/plot.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,10 +584,8 @@ impl PartialEq for Plot {
584584

585585
#[cfg(test)]
586586
mod tests {
587-
use std::path::PathBuf;
588-
589-
590587
use serde_json::{json, to_value};
588+
use std::path::PathBuf;
591589

592590
use super::*;
593591
use crate::Scatter;

plotly_kaleido/src/lib.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,9 @@ impl Kaleido {
224224
"failed to spawn Kaleido binary at {}",
225225
self.cmd_path.to_string_lossy()
226226
)
227-
.to_string()
227+
.to_string()
228228
)
229229
});
230-
231-
232230
{
233231
let plot_data = PlotData::new(plotly_data, format, width, height, scale).to_json();
234232
let mut process_stdin = process.stdin.take().unwrap();
@@ -339,7 +337,7 @@ mod tests {
339337
],
340338
"layout": {}
341339
}))
342-
.unwrap()
340+
.unwrap()
343341
}
344342

345343
#[test]
@@ -449,7 +447,6 @@ mod tests {
449447
assert!(file_size > 0,);
450448
assert!(std::fs::remove_file(dst.as_path()).is_ok());
451449
}
452-
453450
#[cfg(target_os = "macos")]
454451
#[test]
455452
fn save_surface_jpeg() {
@@ -464,7 +461,6 @@ mod tests {
464461
assert!(file_size > 0,);
465462
assert!(std::fs::remove_file(dst.as_path()).is_ok());
466463
}
467-
468464
#[cfg(target_os = "macos")]
469465
#[test]
470466
fn save_surface_webp() {
@@ -479,7 +475,6 @@ mod tests {
479475
assert!(file_size > 0,);
480476
assert!(std::fs::remove_file(dst.as_path()).is_ok());
481477
}
482-
483478
#[cfg(target_os = "macos")]
484479
#[test]
485480
fn save_surface_svg() {
@@ -494,7 +489,6 @@ mod tests {
494489
assert!(file_size > 0,);
495490
assert!(std::fs::remove_file(dst.as_path()).is_ok());
496491
}
497-
498492
#[cfg(target_os = "macos")]
499493
#[test]
500494
fn save_surface_pdf() {

0 commit comments

Comments
 (0)