From 2e696a114b7809230a192fb9450b2982dc299eac Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sat, 25 Apr 2020 09:28:08 +0200 Subject: [PATCH] Update example in CONTRIBUTING.md --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3095dfbe..5e98c4ff 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -87,7 +87,7 @@ Also, group imports by module. For example, do this: use std::{ collections::BTreeMap, convert::TryFrom, - fmt::{Debug, Display, Error as FmtError, Formatter}, + fmt::{self, Debug, Display, Formatter}, }; ``` @@ -96,7 +96,7 @@ as opposed to: ```rust use std::collections::BTreeMap; use std::convert::TryFrom; -use std::fmt::{Debug, Display, Error as FmtError, Formatter}; +use std::fmt::{self, Debug, Display, Formatter}; ``` ### Serde Imports