Skip to content

Commit

Permalink
Make setter nonmutating
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenTiigi committed Dec 30, 2022
1 parent f9a5ed3 commit 2e679bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Validated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public struct Validated<Value>: Validatable, DynamicProperty {
get {
self.projectedValue.wrappedValue
}
set {
nonmutating set {
self.projectedValue.wrappedValue = newValue
}
}
Expand Down

0 comments on commit 2e679bf

Please sign in to comment.