mirror of
https://github.com/fluencelabs/marine-rs-sdk-test
synced 2024-12-04 15:20:18 +00:00
fix clippy warnings
This commit is contained in:
parent
bee1983d97
commit
d5d1207a3d
@ -95,7 +95,7 @@ fn check_func(function_sig: &syn::Signature, function_vis: syn::Visibility) -> R
|
||||
"FCE export function shouldn't use template parameters",
|
||||
));
|
||||
}
|
||||
if let Some(_) = variadic {
|
||||
if variadic.is_some() {
|
||||
return Err(Error::new(
|
||||
variadic.span(),
|
||||
"FCE export function shouldn't use variadic interface",
|
||||
|
@ -29,7 +29,7 @@ const WASM_IMPORT_MODULE_DIRECTIVE_NAME: &str = "wasm_import_module";
|
||||
impl ParseMacroInput for syn::ItemForeignMod {
|
||||
fn parse_macro_input(self) -> Result<FCEAst> {
|
||||
match self.abi.name {
|
||||
Some(ref name) if name.value() != "C".to_string() => {
|
||||
Some(ref name) if name.value() != "C" => {
|
||||
return Err(Error::new(self.span(), "only 'C' abi is allowed"))
|
||||
}
|
||||
_ => {}
|
||||
|
Loading…
Reference in New Issue
Block a user