Skip to content

Commit 0d245e1

Browse files
committed
project: move to swift 6
1 parent 310a070 commit 0d245e1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MAKEFLAGS += --no-print-directory
22
EXECUTABLE_NAME := progressline
3-
SWIFT_VERSION := 5.10
3+
SWIFT_VERSION := 6.0
44
ROOT_PATH := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
55
DOCKER_RUN := docker run --rm --volume $(ROOT_PATH):/workdir --workdir /workdir
66
ZIP := zip -j

Sources/OriginalLogController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ final class OriginalLogController {
1010
do {
1111
let url = URL(fileURLWithPath: path)
1212
try FileManager.default.createDirectory(at: url.deletingLastPathComponent(), withIntermediateDirectories: true)
13-
FileManager.default.createFile(atPath: path, contents: nil)
13+
_ = FileManager.default.createFile(atPath: path, contents: nil)
1414
self.fileHandle = try FileHandle(forWritingTo: url)
1515
fileHandle.seekToEndOfFile()
1616
} catch {

Sources/String+ANSI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22

33
extension String {
4-
private nonisolated(unsafe) static let ansiRegex = try! NSRegularExpression(pattern: "\u{1B}(?:[@-Z\\-_]|\\[[0-?]*[ -/]*[@-~])")
4+
private static let ansiRegex = try! NSRegularExpression(pattern: "\u{1B}(?:[@-Z\\-_]|\\[[0-?]*[ -/]*[@-~])")
55

66
func withoutANSI() -> String {
77
let range = NSRange(startIndex ..< endIndex, in: self)

0 commit comments

Comments
 (0)