summaryrefslogtreecommitdiff
path: root/abnf_to_pest
diff options
context:
space:
mode:
authorNadrieril2019-04-14 22:19:04 +0200
committerNadrieril2019-04-14 22:19:04 +0200
commitbeadb7a9641dda256e505b6ad13fed5de701b040 (patch)
treeea31e48f5c2a4c2f3b61dd96482415d3a17d4871 /abnf_to_pest
parent5bdded94d9197abbcf41313649619acb1baa62b7 (diff)
Update dependencies
Diffstat (limited to '')
-rw-r--r--abnf_to_pest/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/abnf_to_pest/src/lib.rs b/abnf_to_pest/src/lib.rs
index 88f5930..2924bf9 100644
--- a/abnf_to_pest/src/lib.rs
+++ b/abnf_to_pest/src/lib.rs
@@ -107,8 +107,8 @@ pub fn escape_rulename(x: &str) -> String {
}
}
-fn format_char(x: u64) -> String {
- if x <= u64::from(u8::max_value()) {
+fn format_char(x: usize) -> String {
+ if x <= usize::from(u8::max_value()) {
let x: u8 = x as u8;
if x.is_ascii_graphic() {
let x: char = x as char;