File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
noir-projects/noir-protocol-circuits/crates/serde/src Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -288,26 +288,6 @@ pub comptime fn derive_deserialize(s: TypeDefinition) -> Quoted {
288288 }
289289}
290290
291- /// Returns the typed expression of a trait method implementation.
292- ///
293- /// This helper function is preferred over directly inlining with `$typ::target_method()` in a quote, as direct
294- /// inlining would result in missing import warnings in the generated code (specifically, warnings that the trait
295- /// implementation is not in scope).
296- ///
297- pub (crate ) comptime fn get_trait_impl_method (
298- typ : Type ,
299- target_trait : Quoted ,
300- target_method : Quoted ,
301- ) -> TypedExpr {
302- let trait_constraint = target_trait .as_trait_constraint ();
303- typ
304- .get_trait_impl (trait_constraint )
305- .expect (f"Type does not implement trait" )
306- .methods ()
307- .filter (|m | m .name () == target_method )[0 ]
308- .as_typed_expr ()
309- }
310-
311291/// Generates a quoted expression that computes the total serialized length of function parameters.
312292///
313293/// # Parameters
You can’t perform that action at this time.
0 commit comments