From 382425766930a5f4b4446f5d238f0700dff97829 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Wed, 11 Nov 2020 11:27:27 -0500 Subject: [PATCH] Fix SwiftLint violations (#290) --- Sources/Yams/Representer.swift | 6 +++--- Tests/YamsTests/EncoderTests.swift | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/Yams/Representer.swift b/Sources/Yams/Representer.swift index d363a111..b4ff73c1 100644 --- a/Sources/Yams/Representer.swift +++ b/Sources/Yams/Representer.swift @@ -10,14 +10,14 @@ import Foundation #if os(iOS) || os(macOS) || os(watchOS) || os(tvOS) import Darwin -fileprivate let cpow: (_: Double, _: Double) -> Double = Darwin.pow +private let cpow: (_: Double, _: Double) -> Double = Darwin.pow #elseif os(Windows) import ucrt -fileprivate let cpow: (_: Double, _: Double) -> Double = ucrt.pow +private let cpow: (_: Double, _: Double) -> Double = ucrt.pow #else import CoreFoundation import Glibc -fileprivate let cpow: (_: Double, _: Double) -> Double = Glibc.pow +private let cpow: (_: Double, _: Double) -> Double = Glibc.pow #endif public extension Node { diff --git a/Tests/YamsTests/EncoderTests.swift b/Tests/YamsTests/EncoderTests.swift index 46b899f3..693c0bfe 100644 --- a/Tests/YamsTests/EncoderTests.swift +++ b/Tests/YamsTests/EncoderTests.swift @@ -398,9 +398,9 @@ class EncoderTests: XCTestCase { // swiftlint:disable:this type_body_length } private func _testDecodeShouldFail(of type: T.Type, - from string: String, - file: StaticString = #file, - line: UInt = #line) where T: Codable { + from string: String, + file: StaticString = #file, + line: UInt = #line) where T: Codable { do { let decoder = YAMLDecoder() _ = try decoder.decode(T.self, from: string)