mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-30 09:05:54 +00:00
Rename CharTable to CharacterTable
This commit is contained in:
1 parent
0c192e979b
commit
29e3350e69
2 files changed
+21
-21
No files matched your search
+5
-5
@@ -17,7 +17,7 @@ use thiserror::Error as ThisError;
|
||||
|
||||
use terminal_size::terminal_size;
|
||||
|
||||
use hexyl::{Base, BorderStyle, CharTable, Endianness, Input, PrinterBuilder};
|
||||
use hexyl::{Base, BorderStyle, CharacterTable, Endianness, Input, PrinterBuilder};
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
@@ -482,13 +482,13 @@ fn run() -> Result<()> {
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
let char_table = match matches
|
||||
let character_table = match matches
|
||||
.get_one::<String>("character-table")
|
||||
.unwrap()
|
||||
.as_ref()
|
||||
{
|
||||
"ascii-only" => CharTable::AsciiOnly,
|
||||
"codepage-437" => CharTable::CP437,
|
||||
"ascii-only" => CharacterTable::AsciiOnly,
|
||||
"codepage-437" => CharacterTable::CP437,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
@@ -505,7 +505,7 @@ fn run() -> Result<()> {
|
||||
.group_size(group_size)
|
||||
.with_base(base)
|
||||
.endianness(endianness)
|
||||
.char_table(char_table)
|
||||
.character_table(character_table)
|
||||
.build();
|
||||
printer.display_offset(skip_offset + display_offset);
|
||||
printer.print_all(&mut reader).map_err(|e| anyhow!(e))?;
|
||||
|
||||
Reference in new issue
Block a user