1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

travis: fix compiler warnings for 1.22

This commit is contained in:
shutefan 2017-10-06 00:49:43 +02:00
parent 82d6d24a97
commit e1d41b84f3
3 changed files with 4 additions and 4 deletions

View file

@ -65,9 +65,9 @@ fn comm(a: &mut LineReader, b: &mut LineReader, opts: &getopts::Matches) {
let delim : Vec<String> = (0 .. 4).map(|col| mkdelim(col, opts)).collect(); let delim : Vec<String> = (0 .. 4).map(|col| mkdelim(col, opts)).collect();
let mut ra = &mut String::new(); let ra = &mut String::new();
let mut na = a.read_line(ra); let mut na = a.read_line(ra);
let mut rb = &mut String::new(); let rb = &mut String::new();
let mut nb = b.read_line(rb); let mut nb = b.read_line(rb);
while na.is_ok() || nb.is_ok() { while na.is_ok() || nb.is_ok() {

View file

@ -179,7 +179,7 @@ impl UnescapedText {
let mut new_text = UnescapedText::new(); let mut new_text = UnescapedText::new();
let mut tmp_str = String::new(); let mut tmp_str = String::new();
{ {
let mut new_vec: &mut Vec<u8> = &mut (new_text.0); let new_vec: &mut Vec<u8> = &mut (new_text.0);
while let Some(ch) = it.next() { while let Some(ch) = it.next() {
if !addchar { if !addchar {
addchar = true; addchar = true;

View file

@ -137,7 +137,7 @@ fn next_tabstop(tabstops: &[usize], col: usize) -> Option<usize> {
} }
} }
fn write_tabs(mut output: &mut BufWriter<Stdout>, tabstops: &[usize], fn write_tabs(output: &mut BufWriter<Stdout>, tabstops: &[usize],
mut scol: usize, col: usize, prevtab: bool, init: bool, amode: bool) { mut scol: usize, col: usize, prevtab: bool, init: bool, amode: bool) {
// This conditional establishes the following: // This conditional establishes the following:
// We never turn a single space before a non-blank into // We never turn a single space before a non-blank into