mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
058d3f9c4e
commit
55c6aad3a7
3 changed files with 5 additions and 5 deletions
|
|
@ -39,7 +39,7 @@ impl Image {
|
|||
img.as_bytes(),
|
||||
img.width(),
|
||||
img.height(),
|
||||
img.color().into(),
|
||||
img.color(),
|
||||
)?;
|
||||
Ok::<_, anyhow::Error>(buf)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ impl Tab {
|
|||
if self.selected.is_empty() {
|
||||
self.current.hovered().map(|h| vec![&h.url]).unwrap_or_default()
|
||||
} else {
|
||||
self.selected.iter().collect()
|
||||
self.selected.keys().collect()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ impl Tab {
|
|||
if self.selected.is_empty() {
|
||||
vec![&h.url, &h.url]
|
||||
} else {
|
||||
[&h.url].into_iter().chain(self.selected.iter()).collect()
|
||||
[&h.url].into_iter().chain(self.selected.keys()).collect()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ impl Logs {
|
|||
let (handle, guard) = tracing_appender::non_blocking(appender);
|
||||
|
||||
// let filter = EnvFilter::from_default_env();
|
||||
let subscriber =
|
||||
Registry::default().with(fmt::layer().pretty().with_writer(handle).with_ansi(false));
|
||||
let subscriber = Registry::default()
|
||||
.with(fmt::layer().pretty().with_writer(handle).with_ansi(cfg!(debug_assertions)));
|
||||
|
||||
tracing::subscriber::set_global_default(subscriber).expect("setting default subscriber failed");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue