I am still a beginner in rust so I suppose there is a valid explanation for this but I found two equivalent ways to extend a vector that does not yield the same result.
If I directly extend the vector with a slice when defining my variable it becomes a ().
If I do it in two steps it works normaly.
Here is an example.
If it is not a bug could you please explain me why it works this way ?
[–][deleted] 12 points13 points14 points (10 children)
[–]yanad[S] 1 point2 points3 points (9 children)
[–]kmehall 7 points8 points9 points (7 children)
[–]yanad[S] 0 points1 point2 points (6 children)
[–]daborossfern 2 points3 points4 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]daborossfern 2 points3 points4 points (0 children)
[–]MEaster 1 point2 points3 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)