Skip to content

Commit 3a5f7f7

Browse files
committed
Refactor import statements in tests module for readability.
Reorganized imports in the tests module to improve clarity and maintain consistency. Non-standard library imports are now grouped separately, following a logical and readable structure.
1 parent 20a29d2 commit 3a5f7f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plotly/src/plot.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,14 +584,15 @@ impl PartialEq for Plot {
584584

585585
#[cfg(test)]
586586
mod tests {
587-
use super::*;
588-
use crate::Scatter;
587+
use std::path::PathBuf;
589588

590589
use serde_json::{json, to_value};
591-
use std::path::PathBuf;
592590
#[cfg(not(target_os = "macos"))]
593591
use {base64::engine::general_purpose, base64::Engine};
594592

593+
use super::*;
594+
use crate::Scatter;
595+
595596
fn create_test_plot() -> Plot {
596597
let trace1 = Scatter::new(vec![0, 1, 2], vec![6, 10, 2]).name("trace1");
597598
let mut plot = Plot::new();

0 commit comments

Comments
 (0)