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)