Skip to content

Commit

Permalink
Use Equatable, Hashable from ShellOut
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Oct 9, 2023
1 parent 1fefead commit d0dd449
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/SwiftPackageIndex/ShellOut.git",
"state" : {
"revision" : "79bc247323691d6689a358b4bbb24e5ef952e73f",
"version" : "3.1.3"
"revision" : "e862e8866c9d5d3fbc394aefdc8428f31c99355c",
"version" : "3.1.4"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let package = Package(
.package(url: "https://github.com/SwiftPackageIndex/DependencyResolution", from: "1.1.2"),
.package(url: "https://github.com/SwiftPackageIndex/SPIManifest.git", from: "1.1.0"),
.package(url: "https://github.com/SwiftPackageIndex/SemanticVersion", from: "0.3.0"),
.package(url: "https://github.com/SwiftPackageIndex/ShellOut.git", from: "3.1.0"),
.package(url: "https://github.com/SwiftPackageIndex/ShellOut.git", from: "3.1.4"),
.package(url: "https://github.com/apple/swift-package-manager.git", revision: "swift-5.9-RELEASE"),
.package(url: "https://github.com/dankinsoid/VaporToOpenAPI.git", from: "4.0.0"),
.package(url: "https://github.com/pointfreeco/swift-custom-dump.git", from: "0.10.0"),
Expand Down
13 changes: 0 additions & 13 deletions Tests/AppTests/AnalyzerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1520,19 +1520,6 @@ class AnalyzerTests: AppTestCase {
}


// We shouldn't be conforming a type we don't own to protocols we don't own
// but in a test module we can loosen that rule a bit.
extension ShellOutCommand: Equatable, Hashable {
public static func == (lhs: ShellOutCommand, rhs: ShellOutCommand) -> Bool {
lhs.description == rhs.description
}

public func hash(into hasher: inout Hasher) {
hasher.combine(description)
}
}


private struct Command: CustomStringConvertible {
var kind: Kind
var path: String
Expand Down

0 comments on commit d0dd449

Please sign in to comment.