diff --git a/tool/src/kotlin/mod.rs b/tool/src/kotlin/mod.rs index b8eca8348..6f743071d 100644 --- a/tool/src/kotlin/mod.rs +++ b/tool/src/kotlin/mod.rs @@ -850,12 +850,11 @@ val intermediateOption = {val_name}.option() ?: return null let err_path = err .as_ref() .map(|err| { - let err_converter = - if let OutType::Opaque(..) | OutType::Struct(..) = err { - ".err()" - } else { - ".primitive_err()" - }; + let err_converter = if let OutType::Opaque(..) | OutType::Struct(..) = err { + ".err()" + } else { + ".primitive_err()" + }; self.gen_out_type_return_conversion( method,