Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
JackKCWong committed Feb 10, 2024
1 parent d97c8ce commit efddcc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/plot/xy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ impl XyPlot {
/// "None" is used, human units will be used, with an heuristic based on the
/// input data for deciding the units and the decimal places.
pub fn new(vec: &[f64], width: usize, height: usize, precision: Option<usize>) -> Self {
let mut plot = Self::new_with_stats(width, height, Stats::new(vec.to_vec().borrow_mut(), precision), precision);
let mut plot = Self::new_with_stats(
width,
height,
Stats::new(vec.to_vec().borrow_mut(), precision),
precision,
);
plot.load(vec);
plot
}
Expand Down
2 changes: 1 addition & 1 deletion src/stats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ impl fmt::Display for Stats {
mod tests {
use super::*;
use float_eq::assert_float_eq;
use yansi::Paint;
use rand::{seq::SliceRandom, thread_rng};
use yansi::Paint;

#[test]
fn basic_test() {
Expand Down

0 comments on commit efddcc9

Please sign in to comment.