mirror of
https://github.com/fluencelabs/marine.git
synced 2025-06-12 14:31:27 +00:00
Aqua: remove -> () + CI: add automatic releases (#92)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
[package]
|
||||
name = "marine-module-interface"
|
||||
description = "Fluence Marine module interface"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
authors = ["Fluence Labs"]
|
||||
license = "Apache-2.0"
|
||||
edition = "2018"
|
||||
|
@ -69,9 +69,9 @@ impl fmt::Display for FunctionSignature {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
use itertools::Itertools;
|
||||
|
||||
let output = match self.output_types.len() {
|
||||
0 => "()",
|
||||
1 => &self.output_types[0],
|
||||
let (designator, output) = match self.output_types.len() {
|
||||
0 => ("", ""),
|
||||
1 => ("->", self.output_types[0].as_str()),
|
||||
_ => unimplemented!("more than 1 output type is unsupported"),
|
||||
};
|
||||
|
||||
@ -80,7 +80,7 @@ impl fmt::Display for FunctionSignature {
|
||||
.iter()
|
||||
.map(|(name, ty)| format!("{}: {}", name, ty))
|
||||
.format(", ");
|
||||
writeln!(f, "{}({}) -> {}", self.name, args, output)
|
||||
writeln!(f, "{}({}) {} {}", self.name, args, designator, output)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user