Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/language/swift.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,12 +790,12 @@ impl Swift {
decs.push(CODABLE);
}

format!("\n/// () isn't codable, so we use this instead to represent Rust's unit type\npublic struct CodableVoid: {} {{}}", decs.join(", "))
format!("\n/// () isn't codable, so we use this instead to represent Rust's unit type\npublic struct CodableVoid: {} {{}}\n", decs.join(", "))
}

/// Write the `CodableVoid` type.
fn write_codable(&self, w: &mut dyn Write, output_string: &str) -> io::Result<()> {
writeln!(w, "{}", output_string)
write!(w, "{}", output_string)
}

/// Build the generic constraints output. This checks for the `swiftGenericConstraints` typeshare attribute and combines
Expand Down
Loading