Skip to content

Commit 8813e5a

Browse files
authored
Fix unused Dependencies warning with proper feature gating #84
1 parent ed3be29 commit 8813e5a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

plotly/examples/ndarray_support.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#[cfg(feature = "plotly_ndarray")]
22
use ndarray::{Array, Ix1, Ix2};
3+
#[cfg(feature = "plotly_ndarray")]
34
use plotly::common::Mode;
5+
#[cfg(feature = "plotly_ndarray")]
46
use plotly::ndarray::ArrayTraces;
7+
#[cfg(feature = "plotly_ndarray")]
58
use plotly::{Plot, Scatter};
69

710
#[cfg(feature = "plotly_ndarray")]

plotly/src/plot.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ impl PartialEq for Plot {
510510
#[cfg(test)]
511511
mod tests {
512512
use serde_json::{json, to_value};
513+
#[cfg(feature = "kaleido")]
513514
use std::path::PathBuf;
514515

515516
use super::*;

0 commit comments

Comments
 (0)