20: turn LinearMap::new into a const fn r=japaric a=japaric
This commit is contained in:
bors[bot] 2018-03-12 05:58:28 +00:00
commit f2f35b6f98

View File

@ -29,7 +29,7 @@ where
///
/// let mut map: LinearMap<&str, isize, [_; 8]> = LinearMap::new();
/// ```
pub fn new() -> Self {
pub const fn new() -> Self {
LinearMap { buffer: Vec::new() }
}