Skip to content

Commit e6d6610

Browse files
authored
Use edition 2018 everywhere (#636)
1 parent 29f0e34 commit e6d6610

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

CONTRIBUTING.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,7 @@ Mark examples that depend on external systems with `no_run` or remove them
271271
if they are not required for the example. Avoid inline comments, preferring
272272
explanation in the description.
273273

274-
> ```rust
275-
> extern crate rand;
276-
>
274+
> ```rust,edition2018
277275
> use rand::distributions::{Normal, Distribution};
278276
>
279277
> fn main() {

build.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
extern crate skeptic;
2-
extern crate walkdir;
3-
41
use walkdir::WalkDir;
52

63
const REMOVED_TESTS: &[&str] = &[

src/concurrency/thread/crossbeam-complex.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ to prevent the entire program from blocking on the worker for-loops. You can
2424
think of the calls to `drop` as signaling that no more messages will be sent.
2525

2626

27-
```rust
28-
extern crate crossbeam;
29-
extern crate crossbeam_channel;
30-
27+
```rust,edition2018
3128
use std::thread;
3229
use std::time::Duration;
3330
use crossbeam_channel::bounded;

src/science/mathematics/linear_algebra/deserialize-matrix.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ by [`serde_json::to_string`] and [`serde_json::from_str`] performs deserializati
66

77
Note that serialization followed by deserialization gives back the original matrix.
88

9-
```rust
10-
extern crate nalgebra;
11-
extern crate serde_json;
12-
9+
```rust,edition2018
1310
use nalgebra::DMatrix;
1411
1512
fn main() -> Result<(), std::io::Error> {

0 commit comments

Comments
 (0)