Skip to content

Commit 996a88d

Browse files
committed
release: 2.3.1
2 parents 55b4740 + 68073fd commit 996a88d

27 files changed

+61
-62
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
matrix:
2222
target:
2323
- x86_64-unknown-linux-gnu
24-
- x86_64-apple-darwin
24+
- aarch64-apple-darwin
2525
include:
2626
- target: x86_64-unknown-linux-gnu
2727
os: ubuntu-latest
28-
- target: x86_64-apple-darwin
28+
- target: aarch64-apple-darwin
2929
os: macos-latest
3030

3131
runs-on: ${{matrix.os}}

.github/workflows/msrv.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
matrix:
2222
target:
2323
- x86_64-unknown-linux-gnu
24-
- x86_64-apple-darwin
24+
- aarch64-apple-darwin
2525
include:
2626
- target: x86_64-unknown-linux-gnu
2727
os: ubuntu-latest
28-
- target: x86_64-apple-darwin
28+
- target: aarch64-apple-darwin
2929
os: macos-latest
3030

3131
runs-on: ${{matrix.os}}

CREDITS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Project Dependencies
22
Package: fyi
3-
Version: 2.3.0
3+
Version: 2.3.1
44
Target: x86_64-unknown-linux-gnu
5-
Generated: 2025-06-26 20:44:29 UTC
5+
Generated: 2025-08-22 04:05:19 UTC
66

77
| Package | Version | Author(s) | License |
88
| ---- | ---- | ---- | ---- |
99
| [**argyle**](https://github.com/Blobfolio/argyle) | 0.13.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
10-
| [**dactyl**](https://github.com/Blobfolio/dactyl) | 0.13.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
10+
| [**dactyl**](https://github.com/Blobfolio/dactyl) | 0.13.1 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
1111
| [**fyi_ansi**](https://github.com/Blobfolio/fyi) | 2.2.1 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
12-
| [**fyi_msg**](https://github.com/Blobfolio/fyi) | 2.3.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
12+
| [**fyi_msg**](https://github.com/Blobfolio/fyi) | 2.3.1 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
1313
| [tz-rs](https://github.com/x-hgg-x/tz-rs) | 0.7.0 | x-hgg-x | MIT OR Apache-2.0 |
14-
| [**utc2k**](https://github.com/Blobfolio/utc2k) | 0.15.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
14+
| [**utc2k**](https://github.com/Blobfolio/utc2k) | 0.17.0 | [Josh Stoik](mailto:josh@blobfolio.com) | WTFPL |
1515

1616
### Legend
1717

fyi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fyi"
3-
version = "2.3.0"
3+
version = "2.3.1"
44
license = "WTFPL"
55
authors = ["Josh Stoik <josh@blobfolio.com>"]
66
edition = "2024"

fyi_ansi/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ mod macros {
117117
);
118118
}
119119

120+
#[expect(clippy::doc_markdown, reason = "No.")]
120121
#[macro_export(local_inner_macros)]
121122
/// # ANSI CSI Sequence.
122123
///

fyi_msg/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fyi_msg"
3-
version = "2.3.0"
3+
version = "2.3.1"
44
authors = ["Josh Stoik <josh@blobfolio.com>"]
55
edition = "2024"
66
rust-version = "1.88"
@@ -39,13 +39,13 @@ version = "0.2.*"
3939
optional = true
4040

4141
[dependencies.utc2k]
42-
version = "0.15.*"
42+
version = "0.17.*"
4343
features = [ "local" ]
4444
optional = true
4545

4646
[dev-dependencies]
4747
brunch = "0.11.*"
48-
rayon = "1.10.*"
48+
rayon = "1.11.*"
4949

5050
[[bench]]
5151
name = "fm_ansi"

fyi_msg/src/fitted.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ use unicode_width::UnicodeWidthChar;
8787
/// "\x1b[1mHello\x1b[0m\x1b[91m\x1b[0m",
8888
/// );
8989
/// ```
90-
pub fn fit_to_width(src: &str, width: usize) -> Cow<str> {
90+
pub fn fit_to_width(src: &str, width: usize) -> Cow<'_, str> {
9191
/// # Trailing Line Break?
9292
const fn terminator(src: &str) -> &str {
9393
match src.as_bytes() {

fyi_msg/src/msg/kind.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ pub trait IntoMsgPrefix {
393393
///
394394
/// [`MsgKind`] prefixes are static and require no allocation, but custom
395395
/// types (unless empty) do to join all the pieces together.
396-
fn prefix_str(&self) -> Cow<str> {
396+
fn prefix_str(&self) -> Cow<'_, str> {
397397
let mut out = String::with_capacity(self.prefix_len());
398398
self.prefix_push(&mut out);
399399
Cow::Owned(out)
@@ -407,7 +407,7 @@ impl IntoMsgPrefix for MsgKind {
407407

408408
#[inline]
409409
/// # Prefix String.
410-
fn prefix_str(&self) -> Cow<str> { Cow::Borrowed(self.as_str_prefix()) }
410+
fn prefix_str(&self) -> Cow<'_, str> { Cow::Borrowed(self.as_str_prefix()) }
411411

412412
#[inline]
413413
/// # Push Prefix.

fyi_msg/src/msg/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ impl Msg {
418418
/// "\x1b[1;34mName\x1b[0m\n",
419419
/// );
420420
/// ```
421-
pub fn fitted(&self, width: usize) -> Cow<str> {
421+
pub fn fitted(&self, width: usize) -> Cow<'_, str> {
422422
crate::fit_to_width(self.as_str(), width)
423423
}
424424

fyi_msg/src/progress/mod.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,17 +1038,15 @@ impl ProglessBuffer {
10381038
self.title.truncate(0);
10391039

10401040
// We need at least two lines of screen space to fit a title.
1041-
if 2 <= height.get() {
1042-
if let Some(title) = title {
1043-
let title = title.fitted(usize::from(width.get()));
1044-
if ! title.is_empty() {
1045-
// Truncate to first line.
1046-
let slice = title.as_bytes();
1047-
let end = slice.iter().copied().position(|b| b == b'\n').unwrap_or(slice.len());
1048-
if end != 0 {
1049-
self.title.extend_from_slice(&slice[..end]);
1050-
self.title.push(b'\n');
1051-
}
1041+
if 2 <= height.get() && let Some(title) = title {
1042+
let title = title.fitted(usize::from(width.get()));
1043+
if ! title.is_empty() {
1044+
// Truncate to first line.
1045+
let slice = title.as_bytes();
1046+
let end = slice.iter().copied().position(|b| b == b'\n').unwrap_or(slice.len());
1047+
if end != 0 {
1048+
self.title.extend_from_slice(&slice[..end]);
1049+
self.title.push(b'\n');
10521050
}
10531051
}
10541052
}

0 commit comments

Comments
 (0)