Skip to content
Draft

WIP #516

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ directories = "4"
sysinfo = "0.27"
ctrlc = "3.4"
chrono = "0.4"
termion="4"

[target.'cfg(not(target_has_atomic = "64"))'.dependencies]
portable-atomic = "1.4"
Expand Down
117 changes: 104 additions & 13 deletions src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use ansi_term::Colour::Red;
use lscolors::{LsColors, Style};

use termion::raw::RawTerminal;
use unicode_width::UnicodeWidthStr;

use stfu8::encode_u8;
Expand All @@ -12,6 +13,8 @@
use std::cmp::max;
use std::cmp::min;
use std::fs;
use std::io::Stdout;
use std::io::Write;
use std::iter::repeat_n;
use std::path::Path;
use thousands::Separable;
Expand All @@ -29,6 +32,7 @@
pub is_screen_reader: bool,
pub output_format: String,
pub bars_on_right: bool,
pub selected_index: i32,
}

pub struct DisplayData {
Expand Down Expand Up @@ -81,6 +85,7 @@
display_data: &'a DisplayData,
}


impl DrawData<'_> {
fn get_new_indent(&self, has_children: bool, was_i_last: bool) -> String {
let chars = self.display_data.get_tree_chars(was_i_last, has_children);
Expand Down Expand Up @@ -129,6 +134,7 @@
no_percent_bars: bool,
terminal_width: usize,
skip_total: bool,
stdout: &mut RawTerminal<Stdout>,
) {
let num_chars_needed_on_left_most = if idd.by_filecount {
let max_size = root_node.size;
Expand Down Expand Up @@ -170,16 +176,28 @@
display_data: &display_data,
};

let mut test = if display_data.initial.is_reversed {
recursive_child_count(root_node)
} else {
0
};

if !skip_total {
display_node(root_node, &draw_data, true, true);
display_node(root_node, stdout, &draw_data, true, true, test);
} else {
for (count, c) in root_node
.get_children_from_node(draw_data.display_data.initial.is_reversed)
.enumerate()
{
let is_biggest = display_data.is_biggest(count, root_node.num_siblings());
let was_i_last = display_data.is_last(count, root_node.num_siblings());
display_node(c, &draw_data, is_biggest, was_i_last);
display_node(c, stdout, &draw_data, is_biggest, was_i_last, test);
// not yet tested:
if display_data.initial.is_reversed {

Check failure on line 196 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (macos-latest)

this `if` has identical blocks

Check failure on line 196 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (ubuntu-latest)

this `if` has identical blocks

Check failure on line 196 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (ubuntu-latest)

this `if` has identical blocks

Check failure on line 196 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (macos-latest)

this `if` has identical blocks
test += recursive_child_count(c);
} else {
test += recursive_child_count(c);
}
}
}
}
Expand Down Expand Up @@ -218,16 +236,46 @@
.fold(longest, max)
}

fn display_node(node: &DisplayNode, draw_data: &DrawData, is_biggest: bool, is_last: bool) {
pub fn recursive_child_count(node: &DisplayNode) -> i32 {
let mut total = 1;
for n in node.children.iter() {
total += recursive_child_count(&n);

Check failure on line 242 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (macos-latest)

this expression creates a reference which is immediately dereferenced by the compiler

Check failure on line 242 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (ubuntu-latest)

this expression creates a reference which is immediately dereferenced by the compiler

Check failure on line 242 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (ubuntu-latest)

this expression creates a reference which is immediately dereferenced by the compiler

Check failure on line 242 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (macos-latest)

this expression creates a reference which is immediately dereferenced by the compiler
}
return total;

Check failure on line 244 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (macos-latest)

unneeded `return` statement

Check failure on line 244 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (ubuntu-latest)

unneeded `return` statement

Check failure on line 244 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (ubuntu-latest)

unneeded `return` statement

Check failure on line 244 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (macos-latest)

unneeded `return` statement
}

fn display_node(
node: &DisplayNode,
stdout: &mut RawTerminal<Stdout>,
draw_data: &DrawData,
is_biggest: bool,
is_last: bool,
test: i32,
) {
// hacky way of working out how deep we are in the tree
let indent = draw_data.get_new_indent(!node.children.is_empty(), is_last);
let level = ((indent.chars().count() - 1) / 2) - 1;
let bar_text = draw_data.generate_bar(node, level);

let to_print = format_string(node, &indent, &bar_text, is_biggest, draw_data.display_data);
let cnt = if draw_data.display_data.initial.is_reversed {
recursive_child_count(node)
} else {
0
};

let to_print = format_string(
node,
&indent,
&bar_text,
is_biggest,
&draw_data.display_data,

Check failure on line 271 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (macos-latest)

this expression creates a reference which is immediately dereferenced by the compiler

Check failure on line 271 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (ubuntu-latest)

this expression creates a reference which is immediately dereferenced by the compiler

Check failure on line 271 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (ubuntu-latest)

this expression creates a reference which is immediately dereferenced by the compiler

Check failure on line 271 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (macos-latest)

this expression creates a reference which is immediately dereferenced by the compiler
test - cnt,
);

let mut tt = test;
if !draw_data.display_data.initial.is_reversed {
println!("{to_print}")
tt += 1;
write!(stdout, "{to_print}").unwrap()
}

let dd = DrawData {
Expand All @@ -244,11 +292,17 @@
{
let is_biggest = dd.display_data.is_biggest(count, num_siblings);
let was_i_last = dd.display_data.is_last(count, num_siblings);
display_node(c, &dd, is_biggest, was_i_last);

display_node(c, stdout, &dd, is_biggest, was_i_last, tt);
if draw_data.display_data.initial.is_reversed {
tt -= recursive_child_count(c)
} else {
tt += recursive_child_count(c)
}
}

if draw_data.display_data.initial.is_reversed {
println!("{to_print}")
write!(stdout, "{to_print}").unwrap()
}
}

Expand Down Expand Up @@ -325,18 +379,22 @@
bars: &str,
is_biggest: bool,
display_data: &DisplayData,
test: i32,
) -> String {
let (percent, name_and_padding) = get_name_percent(node, indent, bars, display_data);
let pretty_size = get_pretty_size(node, is_biggest, display_data);
let pretty_size = get_pretty_size(node, is_biggest, display_data, test);
let pretty_name = get_pretty_name(node, name_and_padding, display_data);
let marked = get_name_if_marked(test==display_data.initial.selected_index, pretty_name);
let indent = get_indent_if_marked(test==display_data.initial.selected_index, indent);

// we can clean this and the method below somehow, not sure yet
if display_data.initial.is_screen_reader {
// if screen_reader then bars is 'depth'
format!("{pretty_name} {bars} {pretty_size}{percent}")
format!("{marked} {bars} {pretty_size}{percent}")
} else if display_data.initial.by_filetime.is_some() {
format!("{pretty_size} {indent}{pretty_name}")
format!("{pretty_size} {indent}{marked}")
} else {
format!("{pretty_size} {indent} {pretty_name}{percent}")
format!("{pretty_size} {indent} {marked}{percent}")
}
}

Expand Down Expand Up @@ -366,13 +424,19 @@
}
}

fn get_pretty_size(node: &DisplayNode, is_biggest: bool, display_data: &DisplayData) -> String {
fn get_pretty_size(
node: &DisplayNode,
is_biggest: bool,
display_data: &DisplayData,
n: i32,
) -> String {
let output = if display_data.initial.by_filecount {
node.size.separate_with_commas()
} else if display_data.initial.by_filetime.is_some() {
get_pretty_file_modified_time(node.size as i64)
} else {
human_readable_number(node.size, &display_data.initial.output_format)
// human_readable_number(n, &display_data.initial.output_format)
format!("{n}")
};
let spaces_to_add = display_data.num_chars_needed_on_left_most - output.chars().count();
let output = " ".repeat(spaces_to_add) + output.as_str();
Expand All @@ -392,6 +456,33 @@
local_datetime.format("%Y-%m-%dT%H:%M:%S").to_string()
}

fn get_indent_if_marked(test: bool, indent: &str) -> String {
if test {
let mut new_name = String::new();
for _ in indent.chars() {
new_name.push(BLOCKS[0])
}
new_name
} else {
indent.into()
}
}
fn get_name_if_marked(test: bool, name: String) -> String {
if test {
let mut new_name = String::new();
for c in name.chars() {
if c == ' ' {
new_name.push(BLOCKS[0])
} else {
new_name.push(c)
}
}
new_name
} else {
name.into()

Check failure on line 482 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (macos-latest)

useless conversion to the same type: `std::string::String`

Check failure on line 482 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (ubuntu-latest)

useless conversion to the same type: `std::string::String`

Check failure on line 482 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (ubuntu-latest)

useless conversion to the same type: `std::string::String`

Check failure on line 482 in src/display.rs

View workflow job for this annotation

GitHub Actions / Style (macos-latest)

useless conversion to the same type: `std::string::String`
}
}

fn get_pretty_name(
node: &DisplayNode,
name_and_padding: String,
Expand Down Expand Up @@ -467,7 +558,7 @@

#[cfg(test)]
fn get_fake_display_data(longest_string_length: usize) -> DisplayData {
let initial = InitialDisplayData {

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / MinSRV

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-gnueabihf, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-musl, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-gnu, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-gnu, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-gnu, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-musl, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (macos-latest, x86_64-apple-darwin)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-musleabi, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-musl, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / MinSRV

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-gnu, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-musl, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-musl, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (macos-latest, x86_64-apple-darwin)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-gnu, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-gnueabihf, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-musl, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-musleabi, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`

Check failure on line 561 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-gnu, use-cross)

missing field `selected_index` in initializer of `display::InitialDisplayData`
short_paths: true,
is_reversed: false,
colors_on: false,
Expand Down Expand Up @@ -498,7 +589,7 @@
let is_biggest = false;
let data = get_fake_display_data(20);

let s = format_string(&n, indent, percent_bar, is_biggest, &data);

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / MinSRV

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-gnueabihf, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (macos-latest, x86_64-apple-darwin)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-musleabi, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / MinSRV

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (macos-latest, x86_64-apple-darwin)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-gnueabihf, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-musleabi, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 592 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied
assert_eq!(s, " 4.0K ┌─┴ short");
}

Expand All @@ -515,7 +606,7 @@
let is_biggest = false;

let data = get_fake_display_data(64);
let s = format_string(&n, indent, percent_bar, is_biggest, &data);

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / MinSRV

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-gnueabihf, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (macos-latest, x86_64-apple-darwin)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-musleabi, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / MinSRV

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (macos-latest, x86_64-apple-darwin)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-gnueabihf, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-musleabi, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 609 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied
assert_eq!(
s,
" 4.0K ┌─┴ very_long_name_longer_than_the_eighty_character_limit_very_.."
Expand All @@ -535,7 +626,7 @@
let mut data = get_fake_display_data(20);
data.initial.is_screen_reader = true;

let s = format_string(&n, indent, percent_bar, is_biggest, &data);

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / MinSRV

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-gnueabihf, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (macos-latest, x86_64-apple-darwin)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-musleabi, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / MinSRV

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, aarch64-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (macos-latest, x86_64-apple-darwin)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-gnueabihf, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, i686-unknown-linux-musl, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, arm-unknown-linux-musleabi, use-cross)

this function takes 6 arguments but 5 arguments were supplied

Check failure on line 629 in src/display.rs

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, x86_64-unknown-linux-gnu, use-cross)

this function takes 6 arguments but 5 arguments were supplied
assert_eq!(s, "short 3 4.0K 100%");
}

Expand Down
Loading
Loading