We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 616dab7 commit 0ca7ca0Copy full SHA for 0ca7ca0
soroban-sdk-macros/src/syn_ext.rs
@@ -48,15 +48,6 @@ pub fn fn_arg_ident(arg: &FnArg) -> Result<Ident, Error> {
48
))
49
}
50
51
-// TODO: Add a function that validates function parameters.
52
-// // Check if this is a mutable reference and reject it
53
-// if let Type::Reference(TypeReference { mutability: Some(_), .. }) = *pat_type.ty {
54
-// return Err(Error::new(
55
-// pat_type.ty.span(),
56
-// "mutable references (&mut) are not supported in contract function parameters, use immutable references (&) instead",
57
-// ));
58
-// }
59
-
60
/// Modifies a Pat removing any 'mut' on an Ident.
61
pub fn pat_unwrap_mut(p: Pat) -> Pat {
62
match p {
0 commit comments