Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit a471417

Browse files
committed
Release 0.5.0 🚢
1 parent dbcbed9 commit a471417

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ so that's what you'd import in your Swift files.
2323
```swift
2424
dependencies: [
2525
.package(
26-
name: "swift-baggage-context",
26+
name: "swift-context",
2727
url: "https://github.com/slashmo/gsoc-swift-baggage-context.git",
28-
from: "0.3.0"
28+
from: "0.5.0"
2929
)
3030
]
3131
```

Sources/BaggageContextBenchmarkTools/ArgParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class ArgumentParser<U> {
219219
) {
220220
self.arguments.append(
221221
Argument(name: name, help: help)
222-
{ try self.parseArgument(name, property, defaultValue, parser) }
222+
{ try self.parseArgument(name, property, defaultValue, parser) }
223223
)
224224
}
225225

Sources/BaggageContextBenchmarks/locks.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ extension CountDownLatch: CustomStringConvertible {
7272

7373
final class _Condition {
7474
@usableFromInline
75-
var condition: pthread_cond_t = pthread_cond_t()
75+
var condition = pthread_cond_t()
7676

7777
public init() {
7878
let error = pthread_cond_init(&self.condition, nil)
@@ -163,10 +163,10 @@ final class _Condition {
163163

164164
final class _Mutex {
165165
@usableFromInline
166-
var mutex: pthread_mutex_t = pthread_mutex_t()
166+
var mutex = pthread_mutex_t()
167167

168168
public init() {
169-
var attr: pthread_mutexattr_t = pthread_mutexattr_t()
169+
var attr = pthread_mutexattr_t()
170170
pthread_mutexattr_init(&attr)
171171
pthread_mutexattr_settype(&attr, Int32(PTHREAD_MUTEX_RECURSIVE))
172172

Tests/BaggageContextTests/TestLogger.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ extension History {
190190
metadata: Logger.Metadata? = nil,
191191
source: String? = nil,
192192
file: StaticString = #file,
193-
line: UInt = #line) {
193+
line: UInt = #line)
194+
{
194195
let source = source ?? Logger.currentModule(filePath: "\(file)")
195196
let entry = self.find(level: level, message: message, metadata: metadata, source: source)
196197
XCTAssertNotNil(
@@ -210,7 +211,8 @@ extension History {
210211
metadata: Logger.Metadata? = nil,
211212
source: String? = nil,
212213
file: StaticString = #file,
213-
line: UInt = #line) {
214+
line: UInt = #line)
215+
{
214216
let source = source ?? Logger.currentModule(filePath: "\(file)")
215217
let entry = self.find(level: level, message: message, metadata: metadata, source: source)
216218
XCTAssertNil(

0 commit comments

Comments
 (0)