# HG changeset patch # User Yuya Nishihara # Date 1566015964 -32400 # Node ID 8f0881193946ded355bad7106508fd0467fcb31d # Parent 8d2d5dfa07f5cf8422e38e1402bf5ef2e2434f58 rust-dirstate: remove repetition in array literal diff -r 8d2d5dfa07f5 -r 8f0881193946 rust/hg-core/src/dirstate/dirstate_map.rs --- a/rust/hg-core/src/dirstate/dirstate_map.rs Sat Aug 17 13:42:30 2019 +0900 +++ b/rust/hg-core/src/dirstate/dirstate_map.rs Sat Aug 17 13:26:04 2019 +0900 @@ -20,10 +20,7 @@ pub type FileFoldMap = HashMap, Vec>; -const NULL_REVISION: [u8; 20] = [ - b'\0', b'\0', b'\0', b'\0', b'\0', b'\0', b'\0', b'\0', b'\0', b'\0', - b'\0', b'\0', b'\0', b'\0', b'\0', b'\0', b'\0', b'\0', b'\0', b'\0', -]; +const NULL_REVISION: [u8; 20] = [0; 20]; const MTIME_UNSET: i32 = -1; const SIZE_DIRTY: i32 = -2;