changeset 42812:8f0881193946

rust-dirstate: remove repetition in array literal
author Yuya Nishihara <yuya@tcha.org>
date Sat, 17 Aug 2019 13:26:04 +0900
parents 8d2d5dfa07f5
children 1faa2bed47c6
files rust/hg-core/src/dirstate/dirstate_map.rs
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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<u8>, Vec<u8>>;
 
-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;