Skip to content

Commit

Permalink
Fix Swift 5.9 warnings (airbnb#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith authored and Igor Moroz committed May 22, 2024
1 parent 8cfbc50 commit 8ccaa48
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ enum Keyframes {
extension KeyframeGroup {
/// Whether or not all of the keyframes in this `KeyframeGroup` have the same
/// timing parameters as the corresponding keyframe in the other given `KeyframeGroup`
func hasSameTimingParameters<T>(as other: KeyframeGroup<T>) -> Bool {
func hasSameTimingParameters<U>(as other: KeyframeGroup<U>) -> Bool {
guard keyframes.count == other.keyframes.count else {
return false
}
Expand All @@ -276,7 +276,7 @@ extension KeyframeGroup {
extension Keyframe {
/// Whether or not this keyframe has the same timing parameters as the given keyframe,
/// excluding `spatialInTangent` and `spatialOutTangent`.
fileprivate func hasSameTimingParameters<T>(as other: Keyframe<T>) -> Bool {
fileprivate func hasSameTimingParameters<U>(as other: Keyframe<U>) -> Bool {
time == other.time
&& isHold == other.isHold
&& inTangent == other.inTangent
Expand Down

0 comments on commit 8ccaa48

Please sign in to comment.