Skip to content

Commit

Permalink
update format
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Jun 26, 2024
1 parent 673c1d3 commit 31b7257
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--extensionacl on-declarations
--maxwidth 150
3 changes: 2 additions & 1 deletion Blockchain/Sources/Blockchain/Types/State.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ extension State: Dummy {
reports: ConfigFixedSizeArray(withConfig: config, defaultValue: nil),
timestamp: 0,
authorizationQueue: ConfigFixedSizeArray(
withConfig: config, defaultValue: ConfigFixedSizeArray(withConfig: config, defaultValue: H256())
withConfig: config,
defaultValue: ConfigFixedSizeArray(withConfig: config, defaultValue: H256())
),
privilegedServiceIndices: (
empower: ServiceIdentifier(),
Expand Down
3 changes: 2 additions & 1 deletion Database/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ let package = Package(
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "Database"),
name: "Database"
),
.testTarget(
name: "DatabaseTests",
dependencies: ["Database"]
Expand Down
6 changes: 5 additions & 1 deletion Utils/Sources/Utils/ConfigLimitedSizeArray.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ extension ConfigLimitedSizeArray {
public typealias ConfigFixedSizeArray<T, TLength: ReadInt> = ConfigLimitedSizeArray<T, TLength, TLength>

extension ConfigLimitedSizeArray {
public init<D: ScaleCodec.Decoder>(withConfig config: TMinLength.TConfig, from decoder: inout D, decodeItem: @escaping (inout D) throws -> T) throws {
public init<D: ScaleCodec.Decoder>(
withConfig config: TMinLength.TConfig,
from decoder: inout D,
decodeItem: @escaping (inout D) throws -> T
) throws {
let minLength = TMinLength.read(config: config)
let maxLength = TMaxLength.read(config: config)

Expand Down

0 comments on commit 31b7257

Please sign in to comment.