Skip to content

Commit

Permalink
Merge pull request #233 from aoge123/master
Browse files Browse the repository at this point in the history
Fix deprecations for Xcode 9.1
  • Loading branch information
pcantrell authored Nov 12, 2017
2 parents a5a3cc6 + eb68657 commit ce4ff32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Siesta/Support/Logging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public enum LogCategory
public static var enabled = Set<LogCategory>()
}

private let maxCategoryNameLength = LogCategory.all.map { Int(String(describing: $0).characters.count) }.max() ?? 0
private let maxCategoryNameLength = LogCategory.all.map { Int(String(describing: $0).count) }.max() ?? 0

/// Inject your custom logger to do something other than print to stdout.
public var logger: (LogCategory, String) -> Void =
Expand Down
2 changes: 1 addition & 1 deletion Tests/Functional/ResponseDataHandlingSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ private class TestTransformer: ResponseTransformer
case .success(var entity):
entity.content = (entity.content as? String ?? "<non-string>") + " processed"
if let header = entity.headers["x-custom-header"]
{ entity.headers["x-custom-header"] = String(header.characters.reversed()) }
{ entity.headers["x-custom-header"] = String(header.reversed()) }
return .success(entity)

case .failure(var error):
Expand Down

0 comments on commit ce4ff32

Please sign in to comment.