mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
chore: bump Rust version to 1.86.0 (#2766)
This commit is contained in:
parent
ffc635e434
commit
746c7f5ce9
4 changed files with 18 additions and 18 deletions
12
flake.lock
generated
12
flake.lock
generated
|
|
@ -20,11 +20,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744868846,
|
"lastModified": 1747312588,
|
||||||
"narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=",
|
"narHash": "sha256-MmJvj6mlWzeRwKGLcwmZpKaOPZ5nJb/6al5CXqJsgjo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c",
|
"rev": "b1bebd0fe266bbd1820019612ead889e96a8fa2d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -48,11 +48,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1745116541,
|
"lastModified": 1747363019,
|
||||||
"narHash": "sha256-5xzA6dTfqCfTTDCo3ipPZzrg3wp01xmcr73y4cTNMP8=",
|
"narHash": "sha256-N4dwkRBmpOosa4gfFkFf/LTD8oOcNkAyvZ07JvRDEf0=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "e2142ef330a61c02f274ac9a9cb6f8487a5d0080",
|
"rev": "0e624f2b1972a34be1a9b35290ed18ea4b419b6f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
use std::path::MAIN_SEPARATOR_STR;
|
use std::path::{MAIN_SEPARATOR_STR, Path};
|
||||||
|
|
||||||
use ratatui::{buffer::Buffer, layout::Rect, widgets::{Block, BorderType, List, ListItem, Widget}};
|
use ratatui::{buffer::Buffer, layout::Rect, widgets::{Block, BorderType, List, ListItem, Widget}};
|
||||||
use yazi_adapter::Dimension;
|
use yazi_adapter::Dimension;
|
||||||
|
|
@ -26,7 +26,8 @@ impl Widget for Cmp<'_> {
|
||||||
let icon = if x.is_dir { &THEME.cmp.icon_folder } else { &THEME.cmp.icon_file };
|
let icon = if x.is_dir { &THEME.cmp.icon_folder } else { &THEME.cmp.icon_file };
|
||||||
let slash = if x.is_dir { MAIN_SEPARATOR_STR } else { "" };
|
let slash = if x.is_dir { MAIN_SEPARATOR_STR } else { "" };
|
||||||
|
|
||||||
let mut item = ListItem::new(format!(" {icon} {}{slash}", x.name.display()));
|
// FIXME: Bump Rust to 1.87.0 and use `OsStr::display()` instead
|
||||||
|
let mut item = ListItem::new(format!(" {icon} {}{slash}", Path::new(&x.name).display()));
|
||||||
if i == self.cx.cmp.rel_cursor() {
|
if i == self.cx.cmp.rel_cursor() {
|
||||||
item = item.style(THEME.cmp.active);
|
item = item.style(THEME.cmp.active);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
||||||
description = "Yazi shared library"
|
description = "Yazi shared library"
|
||||||
homepage = "https://yazi-rs.github.io"
|
homepage = "https://yazi-rs.github.io"
|
||||||
repository = "https://github.com/sxyazi/yazi"
|
repository = "https://github.com/sxyazi/yazi"
|
||||||
rust-version = "1.85.0"
|
rust-version = "1.86.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
yazi-macro = { path = "../yazi-macro", version = "25.5.14" }
|
yazi-macro = { path = "../yazi-macro", version = "25.5.14" }
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
[package]
|
[package]
|
||||||
name = "yazi-term"
|
name = "yazi-term"
|
||||||
version = "25.5.14"
|
version = "25.5.14"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
||||||
description = "Yazi terminal extensions"
|
description = "Yazi terminal extensions"
|
||||||
homepage = "https://yazi-rs.github.io"
|
homepage = "https://yazi-rs.github.io"
|
||||||
repository = "https://github.com/sxyazi/yazi"
|
repository = "https://github.com/sxyazi/yazi"
|
||||||
rust-version = "1.85.0"
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
yazi-macro = { path = "../yazi-macro", version = "25.5.14" }
|
yazi-macro = { path = "../yazi-macro", version = "25.5.14" }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue