Replace with vec:from_elem.

Thanks to doener on #rust .