Skip to content

Commit 984880f

Browse files
committed
release: 1.0.3
2 parents a53042a + a011b87 commit 984880f

File tree

8 files changed

+55
-49
lines changed

8 files changed

+55
-49
lines changed

CREDITS.md

Lines changed: 43 additions & 38 deletions
Large diffs are not rendered by default.

refract/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "refract"
3-
version = "1.0.2"
3+
version = "1.0.3"
44
license = "WTFPL"
55
authors = ["Josh Stoik <josh@blobfolio.com>"]
66
edition = "2024"
@@ -98,7 +98,7 @@ label = "<PATH(s)…>"
9898
description = "Image and/or directory paths to re-encode. Directories will be crawled recursively."
9999

100100
[build-dependencies]
101-
argyle = "0.11.*"
101+
argyle = "0.12.*"
102102
dowser = "0.12.*"
103103

104104
[build-dependencies.refract_core]
@@ -110,12 +110,12 @@ features = [ "png" ]
110110
dactyl = "0.10.*"
111111
dowser = "0.12.*"
112112
open = "=5.3.2"
113-
rfd = "=0.15.2"
113+
rfd = "=0.15.3"
114114
unicode-width = "0.2.*"
115115
write_atomic = "0.6.*"
116116

117117
[dependencies.argyle]
118-
version = "0.11.*"
118+
version = "0.12.*"
119119
features = [ "try_paths" ]
120120

121121
[dependencies.async-std]

refract/src/app.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ impl App {
358358
/// Flip the bits corresponding to a given flag, except in cases where
359359
/// that would leave us without any formats or modes, in which case _all_
360360
/// formats or modes (respectively) will be flipped back _on_.
361-
fn toggle_flag(&mut self, flag: u16) {
361+
const fn toggle_flag(&mut self, flag: u16) {
362362
self.flags ^= flag;
363363

364364
// Same as `new`, we need to make sure the format and mode flags aren't
@@ -1822,6 +1822,7 @@ impl CurrentImage {
18221822
/// Return the output format that is currently being crunched, if any.
18231823
const fn output_kind(&self) -> Option<ImageKind> { self.output_kind }
18241824

1825+
#[expect(clippy::missing_const_for_fn, reason = "False positive.")]
18251826
/// # Source Path.
18261827
fn src(&self) -> &Path { &self.done.src }
18271828
}

refract_core/Cargo.toml

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

refract_core/src/enc/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl Output {
123123
///
124124
/// This is used internally by the JPEG XL encoder to stream write the
125125
/// results.
126-
pub(crate) fn as_mut_vec(&mut self) -> &mut Vec<u8> { &mut self.data }
126+
pub(crate) const fn as_mut_vec(&mut self) -> &mut Vec<u8> { &mut self.data }
127127

128128
#[inline]
129129
#[must_use]

refract_core/src/enc/quality.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl QualityValueFmt {
249249
// This can't fail, but the compiler won't know it.
250250
if let Some((mut a, b)) = n.split_at_checked(len.get() - 1) {
251251
// Make sure we have an integer in the first part.
252-
if a.is_empty() { a = "0" };
252+
if a.is_empty() { a = "0"; }
253253

254254
let mut out = String::with_capacity(len.get() + 1);
255255
out.push_str(a);

refract_core/src/kind/jxl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl Decoder for ImageJxl {
117117
&mut buffer
118118
)?;
119119
},
120-
JxlDecoderStatus::FullImage => continue,
120+
JxlDecoderStatus::FullImage => {},
121121
JxlDecoderStatus::Success => {
122122
// Safety: this is an FFI call…
123123
unsafe { JxlDecoderReset(decoder.0); }

release/man/refract.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.TH "REFRACT" "1" "March 2025" "refract v1.0.2" "User Commands"
1+
.TH "REFRACT" "1" "April 2025" "refract v1.0.3" "User Commands"
22
.SH NAME
3-
REFRACT \- Manual page for refract v1.0.2.
3+
REFRACT \- Manual page for refract v1.0.3.
44
.SH DESCRIPTION
55
Guided AVIF/JPEG XL/WebP conversion for JPEG and PNG sources.
66
.SS USAGE:

0 commit comments

Comments
 (0)