mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 18:20:51 +00:00
Fix too much newlines
This commit is contained in:
parent
22f92af124
commit
90f172a34f
@ -566,14 +566,9 @@ impl<'src> GetArgumentPossibilities<'src> for weedle::common::Identifier<'src> {
|
||||
if let Some(other) = record.typedefs.get(&self.0) {
|
||||
other.get_argument_possibilities(record)
|
||||
} else {
|
||||
Some(
|
||||
vec![
|
||||
(
|
||||
self.to_syn_type(record, TypePosition::Argument)?,
|
||||
self.get_type_name(record),
|
||||
)
|
||||
]
|
||||
)
|
||||
let syn_type = self.to_syn_type(record, TypePosition::Argument)?;
|
||||
let type_name = self.get_type_name(record);
|
||||
Some(vec![(syn_type, type_name)])
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -583,14 +578,9 @@ impl<'src> GetArgumentPossibilities<'src> for NonAnyType<'src> {
|
||||
if let NonAnyType::Identifier(identifier) = self {
|
||||
identifier.get_argument_possibilities(record)
|
||||
} else {
|
||||
Some(
|
||||
vec![
|
||||
(
|
||||
self.to_syn_type(record, TypePosition::Argument)?,
|
||||
self.get_type_name(record),
|
||||
)
|
||||
]
|
||||
)
|
||||
let syn_type = self.to_syn_type(record, TypePosition::Argument)?;
|
||||
let type_name = self.get_type_name(record);
|
||||
Some(vec![(syn_type, type_name)])
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -600,14 +590,9 @@ impl<'src> GetArgumentPossibilities<'src> for SingleType<'src> {
|
||||
if let SingleType::NonAny(non_any) = self {
|
||||
non_any.get_argument_possibilities(record)
|
||||
} else {
|
||||
Some(
|
||||
vec![
|
||||
(
|
||||
self.to_syn_type(record, TypePosition::Argument)?,
|
||||
self.get_type_name(record),
|
||||
)
|
||||
]
|
||||
)
|
||||
let syn_type = self.to_syn_type(record, TypePosition::Argument)?;
|
||||
let type_name = self.get_type_name(record);
|
||||
Some(vec![(syn_type, type_name)])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user