Matrix requires owned dynamically sized storage. However, so far no matrix methods used Vec's ability to dynamically change size. If you have no plans to add such methods in future, consider switching storing data to boxed slice. Compared to Vec, it doesn't have methods to change it's size (which can prevent some errors) and it doesn't store additional usize for capacity.