From e9010fc7efa2b099e031dfcbed6969c02c5c08ec Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Mon, 28 Aug 2017 05:44:20 +0000 Subject: [PATCH] Removed QrCode_ prefix from name of another module-private constant in Rust code (related to commit eb200b8ebc1d). --- rust/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 65c6013..fa0a2f6 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -845,7 +845,7 @@ impl QrSegment { let mut accumdata: u32 = 0; let mut accumcount: u32 = 0; for c in text { - let i = match QrSegment_ALPHANUMERIC_CHARSET.iter().position(|x| *x == *c) { + let i = match ALPHANUMERIC_CHARSET.iter().position(|x| *x == *c) { None => panic!("String contains unencodable characters in alphanumeric mode"), Some(j) => j, }; @@ -937,7 +937,7 @@ impl QrSegment { fn is_alphanumeric(text: &[char]) -> bool { - text.iter().all(|c| QrSegment_ALPHANUMERIC_CHARSET.contains(c)) + text.iter().all(|c| ALPHANUMERIC_CHARSET.contains(c)) } @@ -948,7 +948,7 @@ impl QrSegment { } -static QrSegment_ALPHANUMERIC_CHARSET: [char; 45] = ['0','1','2','3','4','5','6','7','8','9', +static ALPHANUMERIC_CHARSET: [char; 45] = ['0','1','2','3','4','5','6','7','8','9', 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z', ' ','$','%','*','+','-','.','/',':'];