Closed sffc closed 3 days ago
Currently I have an experimental function signature that takes &mut self, even though it should not ever mutate. This is because internally it calls load_for_pattern with an empty data provider. I don't want to duplicate the code paths.
&mut self
load_for_pattern
What should we do?
In #5838 I'm removing this function and replacing it with a docs example on how you can use EmptyDataProvider to get the same behavior.
EmptyDataProvider
Currently I have an experimental function signature that takes
&mut self
, even though it should not ever mutate. This is because internally it callsload_for_pattern
with an empty data provider. I don't want to duplicate the code paths.What should we do?