Slightly deoptimized Rust code for clarity, partly undoing commit 6c1f967894.

pull/134/head
Project Nayuki 3 years ago
parent 2fc287904a
commit 3ae4141666

@ -1124,7 +1124,7 @@ impl QrSegment {
///
/// A string is encodable iff each character is in the range 0 to 9.
pub fn is_numeric(text: &str) -> bool {
text.bytes().all(|b| (b'0' ..= b'9').contains(&b))
text.chars().all(|c| ('0' ..= '9').contains(&c))
}

Loading…
Cancel
Save