diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-04 22:07:11 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-04 22:07:11 +0000 |
commit | 46d37a81ac82916ec67a2419a891c81d8ae01919 (patch) | |
tree | f714271189e0267324265830e4c3dc513b81cb11 /crates/ra_db | |
parent | 1fe0b8c03fa613262afd2d612c55cc3a11249c7e (diff) | |
parent | b437dca4bd100c0a7a498d5960d566a0ccd92432 (diff) |
Merge #2477
2477: Run rustfmt with respect to Cargo.toml edition r=matklad a=Speedy37
Fixes #2146
Fixes #1959
Co-authored-by: Vincent Rouillé <[email protected]>
Diffstat (limited to 'crates/ra_db')
-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 |