diff options
author | Vincent Rouillé <[email protected]> | 2019-12-04 22:05:01 +0000 |
---|---|---|
committer | Vincent Rouillé <[email protected]> | 2019-12-04 22:05:01 +0000 |
commit | b437dca4bd100c0a7a498d5960d566a0ccd92432 (patch) | |
tree | f714271189e0267324265830e4c3dc513b81cb11 /crates/ra_db/src | |
parent | 1fe0b8c03fa613262afd2d612c55cc3a11249c7e (diff) |
Run rustfmt with respect to Cargo.toml edition
Diffstat (limited to 'crates/ra_db/src')
-rw-r--r-- | crates/ra_db/src/input.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs index b6d851776..2a7ed20d1 100644 --- a/crates/ra_db/src/input.rs +++ b/crates/ra_db/src/input.rs | |||
@@ -235,6 +235,15 @@ impl FromStr for Edition { | |||
235 | } | 235 | } |
236 | } | 236 | } |
237 | 237 | ||
238 | impl fmt::Display for Edition { | ||
239 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ||
240 | f.write_str(match self { | ||
241 | Edition::Edition2015 => "2015", | ||
242 | Edition::Edition2018 => "2018", | ||
243 | }) | ||
244 | } | ||
245 | } | ||
246 | |||
238 | impl Dependency { | 247 | impl Dependency { |
239 | pub fn crate_id(&self) -> CrateId { | 248 | pub fn crate_id(&self) -> CrateId { |
240 | self.crate_id | 249 | self.crate_id |