Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnEstropia committed Jun 7, 2023
1 parent 4b4ae61 commit 7988d98
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ extension Modern.ColorsDemo.SwiftUI {
}
}
}
.animation(.default)
// .animation(.default) // breaks layout
.listStyle(PlainListStyle())
.edgesIgnoringSafeArea([])
}
Expand Down
1 change: 1 addition & 0 deletions Sources/CoreStore+CustomDebugStringConvertible.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,7 @@ extension NSAttributeType: CoreStoreDebugStringConvertible {
case .objectIDAttributeType: return ".objectIDAttributeType"
case .UUIDAttributeType: return ".UUIDAttributeType"
case .URIAttributeType: return ".URIAttributeType"
case .compositeAttributeType: return ".compositeAttributeType"
@unknown default:
fatalError()
}
Expand Down
8 changes: 4 additions & 4 deletions Sources/Internals.DiffableDataUIDispatcher.DiffResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ extension Internals.DiffableDataUIDispatcher {

// Implementation based on https://github.com/ra1028/DifferenceKit
@usableFromInline
internal struct Trace<Index> {
internal struct Trace<I> {

@usableFromInline
internal var reference: Index?
internal var reference: I?

@usableFromInline
internal var deleteOffset = 0

Expand Down
4 changes: 2 additions & 2 deletions Sources/Select.swift
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ public struct Select<O: DynamicObject, T: SelectResultType>: SelectClause, Hasha

// 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
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/Where.swift
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ public struct Where<O: DynamicObject>: WhereClauseType, FetchClause, QueryClause
- parameter keyPath: the keyPath to compare with
- 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 {

case nil:
Expand Down

0 comments on commit 7988d98

Please sign in to comment.