I’m trying to switch a
Vec<u8> field in a data structure to a
&[u8], but I’m having difficulty modifying the calling code correctly. I’ve made a simple example that captures the essence of what I want to do:
Since I’m unable to properly get this to work with the
next lambda, should I instead move the logic that picks the lambda inside the
handle function and avoid the pain of complicated lifetime annotations altogether?