Skip to content

Commit

Permalink
removed public access modifier from extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
decanus committed Mar 16, 2019
1 parent a86cb7a commit 68bfb2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Sources/Hobbits/Command.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public enum Command: UInt8 {
case sendBlockBody = 0x15
}

public extension Command: CustomStringConvertible {
extension Command: CustomStringConvertible {

var description: String {
public var description: String {
switch self {
case .hello:
return "HELLO"
Expand All @@ -34,7 +34,7 @@ public extension Command: CustomStringConvertible {
}
}

public extension Command {
extension Command {

init?(_ command: String) {
switch (command) {
Expand Down
5 changes: 3 additions & 2 deletions Sources/Hobbits/Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public struct Request {
let body: [UInt8]
}

public extension Request: CustomStringConvertible {
extension Request: CustomStringConvertible {

public var description: String {
var value = "EWP " + version
+ " " + String(describing: command)
Expand All @@ -31,7 +32,7 @@ public extension Request: CustomStringConvertible {
}
}

public extension Request {
extension Request {

init(serializedData input: String) throws {
var result = input.split(separator: "\n")
Expand Down

0 comments on commit 68bfb2b

Please sign in to comment.