base32, base64, uucore: merge base32/base64 code

This commit is contained in:
Alex Lyon
2019-02-21 05:10:12 -08:00
parent bcbf6b35b7
commit 97fa959c71
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -104,9 +104,9 @@ impl<R: Read> Data<R> {
}
// NOTE: this will likely be phased out at some point
pub fn wrap_print(line_wrap: usize, res: String) {
pub fn wrap_print<R: Read>(data: &Data<R>, res: String) {
let stdout = io::stdout();
wrap_write(stdout.lock(), line_wrap, res).unwrap();
wrap_write(stdout.lock(), data.line_wrap, res).unwrap();
}
pub fn wrap_write<W: Write>(mut writer: W, line_wrap: usize, res: String) -> io::Result<()> {
+1
View File
@@ -11,6 +11,7 @@
macro_rules! executable(
() => ({
let module = module_path!();
let module = module.split("::").next().unwrap_or(module);
if &module[0..3] == "uu_" {
&module[3..]
} else {