mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
travis: fix compiler warnings for 1.22
This commit is contained in:
parent
82d6d24a97
commit
e1d41b84f3
3 changed files with 4 additions and 4 deletions
|
@ -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 mut ra = &mut String::new();
|
||||
let ra = &mut String::new();
|
||||
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);
|
||||
|
||||
while na.is_ok() || nb.is_ok() {
|
||||
|
|
|
@ -179,7 +179,7 @@ impl UnescapedText {
|
|||
let mut new_text = UnescapedText::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() {
|
||||
if !addchar {
|
||||
addchar = true;
|
||||
|
|
|
@ -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) {
|
||||
// This conditional establishes the following:
|
||||
// We never turn a single space before a non-blank into
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue