diff options
author | Fabio Valentini <decathorpe@gmail.com> | 2024-02-05 13:53:46 +0100 |
---|---|---|
committer | Wei Zhang <kweizh@gmail.com> | 2024-02-16 11:30:41 +0800 |
commit | 0d2e36ac99eaa99d3d23ef950fb4a226139d6a29 (patch) | |
tree | 02c5df113ff24022c8bb3e73b16b95d9e86f32e5 /src | |
parent | 73eeb7f71735bbef6fd3ed2d67a4f52f1c0423bf (diff) |
update various dependencies
- update dirs from v4 to v5 (no code changes)
- update term_grid from v0.1 to v0.2 (small code changes)
- update terminal_size from v0.1 to v0.3 (no code changes)
- update lscolors from v0.15 to v0.16 (no code changes)
- update serde_yaml from v0.8 to v0.9 (no code changes)
The term_grid update required small changes to the use of
`term_grid::Cell` because with v0.2, it is possible to specify the
alignment within the cell. Adding `Alignment::Left` should preserve
the current behaviour.
This commit also includes the changes generated by "cargo update",
which seems not to have been run in a long time, causing very old
versions to be pulled in.
Diffstat (limited to 'src')
-rw-r--r-- | src/display.rs | 5 | ||||
-rw-r--r-- | src/flags.rs | 1 | ||||
-rw-r--r-- | src/meta/mod.rs | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/display.rs b/src/display.rs index 7c1b718..a6d4942 100644 --- a/src/display.rs +++ b/src/display.rs @@ -6,7 +6,7 @@ use crate::icon::Icons; use crate::meta::name::DisplayOption; use crate::meta::{FileType, Meta}; use std::collections::HashMap; -use term_grid::{Cell, Direction, Filling, Grid, GridOptions}; +use term_grid::{Alignment, Cell, Direction, Filling, Grid, GridOptions}; use terminal_size::terminal_size; use unicode_width::UnicodeWidthStr; @@ -130,6 +130,7 @@ fn inner_display_grid( cells.push(Cell { width: get_visible_width(&block, flags.hyperlink == HyperlinkOption::Always), contents: block, + alignment: Alignment::Left, }); } } @@ -216,6 +217,7 @@ fn add_header(flags: &Flags, cells: &[Cell], grid: &mut Grid) { grid.add(Cell { width: widths[idx], contents: underlined_header, + alignment: Alignment::Left, }); } } @@ -259,6 +261,7 @@ fn inner_display_tree( cells.push(Cell { width: get_visible_width(&block, flags.hyperlink == HyperlinkOption::Always), contents: block, + alignment: Alignment::Left, }); } diff --git a/src/flags.rs b/src/flags.rs index 9e6b3b9..52e7a49 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -28,7 +28,6 @@ pub use display::Display; pub use header::Header; pub use hyperlink::HyperlinkOption; pub use icons::IconOption; -pub use icons::IconSeparator; pub use icons::IconTheme; pub use icons::Icons; pub use ignore_globs::IgnoreGlobs; diff --git a/src/meta/mod.rs b/src/meta/mod.rs index 8e94324..1f5d36d 100644 --- a/src/meta/mod.rs +++ b/src/meta/mod.rs @@ -27,7 +27,6 @@ pub use self::owner::Owner; pub use self::permissions::Permissions; pub use self::size::Size; pub use self::symlink::SymLink; -pub use crate::icon::Icons; use crate::flags::{Display, Flags, Layout, PermissionFlag}; use crate::{print_error, ExitCode}; |