Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 4bc8190

Browse files
committed
Fixed formatting for new rustfmt.
1 parent d7522ee commit 4bc8190

File tree

1 file changed

+12
-24
lines changed

1 file changed

+12
-24
lines changed

src/changes.rs

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -430,19 +430,15 @@ all method invocations using the method syntax become invalid."
430430
}
431431
TraitItemAdded {
432432
defaulted: true, ..
433-
} => {
434-
"Adding a new defaulted trait item is a breaking change in some specific
433+
} => "Adding a new defaulted trait item is a breaking change in some specific
435434
situations: The new trait item could cause a name clash with traits
436435
defined in user code. Because this is a rather special case, this change
437-
is classified as \"technically breaking\"."
438-
}
436+
is classified as \"technically breaking\".",
439437
TraitItemAdded {
440438
sealed_trait: true, ..
441-
} => {
442-
"Adding a new trait item is a non-breaking change, when user code can't
439+
} => "Adding a new trait item is a non-breaking change, when user code can't
443440
provide implementations of the trait, i.e. if the trait is sealed by
444-
inheriting from an unnamable (crate-local) item."
445-
}
441+
inheriting from an unnamable (crate-local) item.",
446442
TraitItemAdded { .. } =>
447443
// neither defaulted or sealed
448444
{
@@ -468,30 +464,22 @@ type or lifetime not fulfilling the bound are rendered invalid."
468464
}
469465
BoundsLoosened {
470466
trait_def: true, ..
471-
} => {
472-
"Loosening the bounds of a lifetime or type parameter in a trait
467+
} => "Loosening the bounds of a lifetime or type parameter in a trait
473468
definition is a breaking change, because the assumption in user code
474469
that the bound in question hold is violated, potentially invalidating
475-
trait implementation or usage."
476-
}
470+
trait implementation or usage.",
477471
BoundsLoosened {
478472
trait_def: false, ..
479-
} => {
480-
"Loosening the bounds of a lifetime or type parameter in a non-trait
473+
} => "Loosening the bounds of a lifetime or type parameter in a non-trait
481474
definition is a non-breaking change, because all old references to the
482-
item would remain valid."
483-
}
484-
TraitImplTightened => {
485-
"Effectively removing a trait implementation for a (possibly
475+
item would remain valid.",
476+
TraitImplTightened => "Effectively removing a trait implementation for a (possibly
486477
parametrized) type is a breaking change, as all old references to trait
487-
methods on the type become invalid."
488-
}
489-
TraitImplLoosened => {
490-
"Effectively adding a trait implementation for a (possibly
478+
methods on the type become invalid.",
479+
TraitImplLoosened => "Effectively adding a trait implementation for a (possibly
491480
parametrized) type is a breaking change in some specific situations,
492481
as name clashes with other trait implementations in user code can be
493-
caused."
494-
}
482+
caused.",
495483
AssociatedItemAdded => {
496484
"Adding a new item to an inherent impl is a breaking change in some
497485
specific situations, for example if this causes name clashes with a trait

0 commit comments

Comments
 (0)