Skip to content

Commit 78660d0

Browse files
committed
Cleanup.
1 parent 5c3956f commit 78660d0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Sources/DiffableTextKit/Models/Position.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public struct Position<Scheme: DiffableTextKit.Scheme>: Comparable, ExpressibleB
4040
Self()
4141
}
4242

43-
@inlinable static func end<S: StringProtocol>(of characters: S) -> Self {
43+
@inlinable static func end<S>(of characters: S) -> Self where S: StringProtocol {
4444
Self(Scheme.size(of: characters))
4545
}
4646

Sources/DiffableTextKit/Models/Snapshot.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public struct Snapshot: BidirectionalCollection, RangeReplaceableCollection {
4747
}
4848

4949
@inlinable public init<S>(_ characters: S, as attribute: Attribute) where
50-
S: Sequence, S.Element == Character {
51-
self.init(); for character in characters {
50+
S: Sequence, S.Element == Character { self.init()
51+
for character in characters {
5252
self._characters.append(character)
5353
self._attributes.append(attribute)
5454
}

Sources/DiffableTextStylesXNumeric/Number/Number.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ extension Number {
155155
//=--------------------------------------=
156156
// MARK: Finalize
157157
//=--------------------------------------=
158-
self.removeSeparatorAsSuffix()
159158
self.integer.makeAtLeastZero()
159+
self.removeSeparatorAsSuffix()
160160
}
161161
}
162162

Sources/DiffableTextViewsXiOS/DiffableTextField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
#if canImport(UIKit)
1111

12-
import SwiftUI
1312
import DiffableTextKit
13+
import SwiftUI
1414

1515
//*============================================================================*
1616
// MARK: * DiffableTextField

0 commit comments

Comments
 (0)