Skip to content

Commit

Permalink
Solver: change var to let (NFC)
Browse files Browse the repository at this point in the history
Silence a warning with the latest version of Swift.
  • Loading branch information
compnerd committed Oct 25, 2020
1 parent 15cc9de commit c4d9252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Cassowary/Solver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ public class Solver {
/// This method should be used after an edit variable has been addd to the
/// solver in order to suggest the value for that variable.
public func suggest(value: Double, for variable: Variable) throws {
guard var edit: EditInfo = edits[variable] else {
guard let edit: EditInfo = edits[variable] else {
throw UnknownEditVariable(variable)
}

Expand Down

0 comments on commit c4d9252

Please sign in to comment.