mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix various small errors when running in the Swift 6 language mode (#4109)
* Fix various small errors when running in the Swift 6 language mode * Make the `TargetConfiguration` run on the main actor. * Fixed a comment * Add a comment as to why we can't make the whole NSE a main actor. * Fix the unit tests * Fix `blankLinesAtStartOfScope` swiftformat error.
This commit is contained in:
@@ -9,13 +9,11 @@
|
||||
import Foundation
|
||||
import MatrixRustSDK
|
||||
|
||||
/**
|
||||
Logging utility that provies multiple logging levels as well as file output and rolling.
|
||||
Its purpose is to provide a common entry for customizing logging and should be used throughout the code.
|
||||
*/
|
||||
/// Logging utility that provies multiple logging levels as well as file output and rolling.
|
||||
/// Its purpose is to provide a common entry for customizing logging and should be used throughout the code.
|
||||
enum MXLog {
|
||||
private static var rootSpan: Span!
|
||||
private static var currentTarget: String!
|
||||
private nonisolated(unsafe) static var rootSpan: Span!
|
||||
private nonisolated(unsafe) static var currentTarget: String!
|
||||
|
||||
static func configure(currentTarget: String) {
|
||||
self.currentTarget = currentTarget
|
||||
|
||||
Reference in New Issue
Block a user