fix warnings

This commit is contained in:
John Estropia
2023-06-07 14:17:10 +09:00
parent 4b4ae61635
commit 7988d98b92
5 changed files with 10 additions and 9 deletions

View File

@@ -63,7 +63,7 @@ extension Modern.ColorsDemo.SwiftUI {
} }
} }
} }
.animation(.default) // .animation(.default) // breaks layout
.listStyle(PlainListStyle()) .listStyle(PlainListStyle())
.edgesIgnoringSafeArea([]) .edgesIgnoringSafeArea([])
} }

View File

@@ -1215,6 +1215,7 @@ extension NSAttributeType: CoreStoreDebugStringConvertible {
case .objectIDAttributeType: return ".objectIDAttributeType" case .objectIDAttributeType: return ".objectIDAttributeType"
case .UUIDAttributeType: return ".UUIDAttributeType" case .UUIDAttributeType: return ".UUIDAttributeType"
case .URIAttributeType: return ".URIAttributeType" case .URIAttributeType: return ".URIAttributeType"
case .compositeAttributeType: return ".compositeAttributeType"
@unknown default: @unknown default:
fatalError() fatalError()
} }

View File

@@ -213,11 +213,11 @@ extension Internals.DiffableDataUIDispatcher {
// Implementation based on https://github.com/ra1028/DifferenceKit // Implementation based on https://github.com/ra1028/DifferenceKit
@usableFromInline @usableFromInline
internal struct Trace<Index> { internal struct Trace<I> {
@usableFromInline @usableFromInline
internal var reference: Index? internal var reference: I?
@usableFromInline @usableFromInline
internal var deleteOffset = 0 internal var deleteOffset = 0

View File

@@ -503,8 +503,8 @@ public struct Select<O: DynamicObject, T: SelectResultType>: SelectClause, Hasha
// MARK: Equatable // MARK: Equatable
public static func == <T, U>(lhs: Select<O, T>, rhs: Select<O, U>) -> Bool { public static func == <T1, T2>(lhs: Select<O, T1>, rhs: Select<O, T2>) -> Bool {
return lhs.selectTerms == rhs.selectTerms return lhs.selectTerms == rhs.selectTerms
} }

View File

@@ -250,8 +250,8 @@ public struct Where<O: DynamicObject>: WhereClauseType, FetchClause, QueryClause
- parameter keyPath: the keyPath to compare with - parameter keyPath: the keyPath to compare with
- parameter object: the arguments for the `==` operator - parameter object: the arguments for the `==` operator
*/ */
public init<O: DynamicObject>(_ keyPath: KeyPathString, isEqualTo object: O?) { public init<Other: DynamicObject>(_ keyPath: KeyPathString, isEqualTo object: Other?) {
switch object { switch object {
case nil: case nil: