Open mclang opened 1 week ago
Additional layer of indirection is bad.
Check that there is no &Vec/&String/&Box used (function parameters):
&Vec
&String
&Box
$String
&str
&Vec<T>
&[T]
&Box<t>
&T
Problem
Additional layer of indirection is bad.
Solution
Check that there is no
&Vec
/&String
/&Box
used (function parameters):$String
->&str
(immutable string slice)&Vec<T>
->&[T]
&Box<t>
->&T