Update example in CONTRIBUTING.md

This commit is contained in:
Jonas Platte 2020-04-25 09:28:08 +02:00
parent a761d59a4c
commit 2e696a114b
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -87,7 +87,7 @@ Also, group imports by module. For example, do this:
use std::{ use std::{
collections::BTreeMap, collections::BTreeMap,
convert::TryFrom, convert::TryFrom,
fmt::{Debug, Display, Error as FmtError, Formatter}, fmt::{self, Debug, Display, Formatter},
}; };
``` ```
@ -96,7 +96,7 @@ as opposed to:
```rust ```rust
use std::collections::BTreeMap; use std::collections::BTreeMap;
use std::convert::TryFrom; use std::convert::TryFrom;
use std::fmt::{Debug, Display, Error as FmtError, Formatter}; use std::fmt::{self, Debug, Display, Formatter};
``` ```
### Serde Imports ### Serde Imports