Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6d6610

Browse filesBrowse files
authored
Use edition 2018 everywhere (#636)
1 parent 29f0e34 commit e6d6610
Copy full SHA for e6d6610

File tree

Expand file treeCollapse file tree

4 files changed

+3
-14
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+3
-14
lines changed

‎CONTRIBUTING.md

Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-3Lines changed: 1 addition & 3 deletions
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

Copy file name to clipboardExpand all lines: build.rs
-3Lines changed: 0 additions & 3 deletions
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

Copy file name to clipboardExpand all lines: src/concurrency/thread/crossbeam-complex.md
+1-4Lines changed: 1 addition & 4 deletions
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

Copy file name to clipboardExpand all lines: src/science/mathematics/linear_algebra/deserialize-matrix.md
+1-4Lines changed: 1 addition & 4 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.