Run rustfmt on nightly to clean up erroneous comments (#5106)
## Summary This PR runs `rustfmt` with a few nightly options as a one-time fix to catch some malformatted comments. I ended up just running with: ```toml condense_wildcard_suffixes = true edition = "2021" max_width = 100 normalize_comments = true normalize_doc_attributes = true reorder_impl_items = true unstable_features = true use_field_init_shorthand = true ``` Since these all seem like reasonable things to fix, so may as well while I'm here.
This commit is contained in:
@@ -202,8 +202,8 @@ impl<'a> Deref for Definitions<'a> {
|
||||
}
|
||||
|
||||
impl<'a> IntoIterator for Definitions<'a> {
|
||||
type Item = Definition<'a>;
|
||||
type IntoIter = std::vec::IntoIter<Self::Item>;
|
||||
type Item = Definition<'a>;
|
||||
|
||||
fn into_iter(self) -> Self::IntoIter {
|
||||
self.0.into_iter()
|
||||
|
||||
@@ -250,6 +250,7 @@ impl Default for Scopes<'_> {
|
||||
|
||||
impl<'a> Deref for Scopes<'a> {
|
||||
type Target = IndexSlice<ScopeId, Scope<'a>>;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user