diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-01-08 17:04:44 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-01-20 15:58:59 +0200 |
commit | a365a846b8e8bca8f053e8f7152604e0103a7181 (patch) | |
tree | 0f797bdf1915e0e149fda161000912c9c5a21e03 /melib/src/datetime.rs | |
parent | b6403f486b0ceefff46781bccca056a38ecd0577 (diff) |
Replace StackVec with smallvec::SmallVec
SmallVec has a less buggy and better implementation.
Diffstat (limited to 'melib/src/datetime.rs')
-rw-r--r-- | melib/src/datetime.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/datetime.rs b/melib/src/datetime.rs index 7c56686f..0c89925b 100644 --- a/melib/src/datetime.rs +++ b/melib/src/datetime.rs @@ -61,7 +61,7 @@ pub fn timestamp_to_string(timestamp: UnixTimestamp, fmt: Option<&str>) -> Strin }; let s: CString; unsafe { - let mut vec: Vec<u8> = vec![0; 256]; + let mut vec: [u8; 256] = [0; 256]; let ret = strftime( vec.as_mut_ptr() as *mut _, 256, |