Run rustfmt with respect to Cargo.toml edition

This commit is contained in:
Vincent Rouillé 2019-12-04 23:05:01 +01:00
parent 1fe0b8c03f
commit b437dca4bd
No known key found for this signature in database
GPG key ID: FCA513373403B851
4 changed files with 78 additions and 0 deletions

View file

@ -235,6 +235,15 @@ impl FromStr for Edition {
}
}
impl fmt::Display for Edition {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(match self {
Edition::Edition2015 => "2015",
Edition::Edition2018 => "2018",
})
}
}
impl Dependency {
pub fn crate_id(&self) -> CrateId {
self.crate_id