mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
sysutils/onefetch: Update to 2.20.0
Changes: https://github.com/o2sh/onefetch/releases/tag/2.22.0
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
PORTNAME= onefetch
|
||||
DISTVERSION= 2.20.0
|
||||
PORTREVISION= 8
|
||||
DISTVERSION= 2.22.0
|
||||
CATEGORIES= sysutils devel
|
||||
|
||||
MAINTAINER= lcook@FreeBSD.org
|
||||
|
||||
+291
-333
File diff suppressed because it is too large
Load Diff
+585
-669
File diff suppressed because it is too large
Load Diff
@@ -1,11 +0,0 @@
|
||||
--- image/src/iterm.rs.orig 2022-12-15 04:54:42 UTC
|
||||
+++ image/src/iterm.rs
|
||||
@@ -32,7 +32,7 @@ impl super::ImageBackend for ITermBackend {
|
||||
) -> Result<String> {
|
||||
let tty_size = unsafe {
|
||||
let tty_size: winsize = std::mem::zeroed();
|
||||
- ioctl(STDOUT_FILENO, TIOCGWINSZ, &tty_size);
|
||||
+ ioctl(STDOUT_FILENO, TIOCGWINSZ.into(), &tty_size);
|
||||
tty_size
|
||||
};
|
||||
let width_ratio = f64::from(tty_size.ws_col) / f64::from(tty_size.ws_xpixel);
|
||||
@@ -1,11 +0,0 @@
|
||||
--- image/src/kitty.rs.orig 2022-12-15 04:55:51 UTC
|
||||
+++ image/src/kitty.rs
|
||||
@@ -92,7 +92,7 @@ impl super::ImageBackend for KittyBackend {
|
||||
) -> Result<String> {
|
||||
let tty_size = unsafe {
|
||||
let tty_size: winsize = std::mem::zeroed();
|
||||
- ioctl(STDOUT_FILENO, TIOCGWINSZ, &tty_size);
|
||||
+ ioctl(STDOUT_FILENO, TIOCGWINSZ.into(), &tty_size);
|
||||
tty_size
|
||||
};
|
||||
let width_ratio = f64::from(tty_size.ws_col) / f64::from(tty_size.ws_xpixel);
|
||||
@@ -1,11 +0,0 @@
|
||||
--- image/src/sixel.rs.orig 2022-12-15 04:56:28 UTC
|
||||
+++ image/src/sixel.rs
|
||||
@@ -82,7 +82,7 @@ impl super::ImageBackend for SixelBackend {
|
||||
fn add_image(&self, lines: Vec<String>, image: &DynamicImage, colors: usize) -> Result<String> {
|
||||
let tty_size = unsafe {
|
||||
let tty_size: winsize = std::mem::zeroed();
|
||||
- ioctl(STDOUT_FILENO, TIOCGWINSZ, &tty_size);
|
||||
+ ioctl(STDOUT_FILENO, TIOCGWINSZ.into(), &tty_size);
|
||||
tty_size
|
||||
};
|
||||
let cw = tty_size.ws_xpixel / tty_size.ws_col;
|
||||
@@ -1,25 +0,0 @@
|
||||
From 5b0c627366babea1636b35db641c0fec964ddbd1 Mon Sep 17 00:00:00 2001
|
||||
From: David Tolnay <dtolnay@gmail.com>
|
||||
Date: Fri, 15 Mar 2024 20:47:22 -0700
|
||||
Subject: [PATCH] Delete identity conversion in format_description::parse_owned
|
||||
(#671)
|
||||
|
||||
---
|
||||
time/src/format_description/parse/mod.rs | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
diff --git a/time/src/format_description/parse/mod.rs b/time/src/format_description/parse/mod.rs
|
||||
index 1fcc577c9..22ca52591 100644
|
||||
--- cargo-crates/time-0.3.34/src/format_description/parse/mod.rs
|
||||
+++ cargo-crates/time-0.3.34/src/format_description/parse/mod.rs
|
||||
@@ -80,9 +80,7 @@ pub fn parse_owned<const VERSION: usize>(
|
||||
let mut lexed = lexer::lex::<VERSION>(s.as_bytes());
|
||||
let ast = ast::parse::<_, VERSION>(&mut lexed);
|
||||
let format_items = format_item::parse(ast);
|
||||
- let items = format_items
|
||||
- .map(|res| res.map(Into::into))
|
||||
- .collect::<Result<Box<_>, _>>()?;
|
||||
+ let items = format_items.collect::<Result<Box<_>, _>>()?;
|
||||
Ok(items.into())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user