Skip to content

Commit 95fe9d8

Browse files
authored
Merge pull request #24 from mindriot101/remove-extern-crates
Remove extern crate lines from all files
2 parents 1231d83 + 772a49e commit 95fe9d8

File tree

13 files changed

+8
-26
lines changed

13 files changed

+8
-26
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ The API is still very much in flux and is subject to change.
2222
For example, code like:
2323

2424
```rust
25-
extern crate plotlib;
2625
use plotlib::scatter::Scatter;
2726
use plotlib::scatter;
2827
use plotlib::style::{Marker, Point};

examples/barchart_svg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate plotlib;
2-
31
use plotlib::style::BarChart;
42

53
fn main() {

examples/boxplot_svg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate plotlib;
2-
31
use plotlib::style::BoxPlot;
42

53
fn main() {

examples/function_svg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate plotlib;
2-
31
use plotlib::style::Line;
42

53
fn main() {

examples/histogram_svg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate plotlib;
2-
31
use plotlib::style::Bar;
42

53
fn main() {

examples/histogram_text.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
extern crate plotlib;
2-
31
fn main() {
42
let data = [0.3, 0.5, 6.4, 5.3, 3.6, 3.6, 3.5, 7.5, 4.0];
53
let h = plotlib::histogram::Histogram::from_slice(&data, plotlib::histogram::Bins::Count(10));
64
let v = plotlib::view::ContinuousView::new().add(&h);
7-
println!("{}", plotlib::page::Page::single(&v).dimensions(60, 15).to_text().unwrap());
5+
println!(
6+
"{}",
7+
plotlib::page::Page::single(&v)
8+
.dimensions(60, 15)
9+
.to_text()
10+
.unwrap()
11+
);
812
}

examples/line_svg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate plotlib;
2-
31
use plotlib::style::Line;
42

53
fn main() {

examples/scatter_svg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate plotlib;
2-
31
use plotlib::style::Point;
42

53
fn main() {

examples/scatter_text.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate plotlib;
2-
31
use plotlib::style::Point;
42

53
fn main() {

src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ in this case, interpreting the bins and colours to create SVG elements.
7575
7676
*/
7777

78-
extern crate svg;
79-
#[macro_use]
80-
extern crate failure;
81-
8278
pub mod page;
8379
pub mod representation;
8480
pub mod view;

0 commit comments

Comments
 (0)