File tree Expand file tree Collapse file tree 8 files changed +55
-49
lines changed
Expand file tree Collapse file tree 8 files changed +55
-49
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 11[package ]
22name = " refract"
3- version = " 1.0.2 "
3+ version = " 1.0.3 "
44license = " WTFPL"
55authors = [" Josh Stoik <josh@blobfolio.com>" ]
66edition = " 2024"
@@ -98,7 +98,7 @@ label = "<PATH(s)…>"
9898description = " 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 .*"
102102dowser = " 0.12.*"
103103
104104[build-dependencies .refract_core ]
@@ -110,12 +110,12 @@ features = [ "png" ]
110110dactyl = " 0.10.*"
111111dowser = " 0.12.*"
112112open = " =5.3.2"
113- rfd = " =0.15.2 "
113+ rfd = " =0.15.3 "
114114unicode-width = " 0.2.*"
115115write_atomic = " 0.6.*"
116116
117117[dependencies .argyle ]
118- version = " 0.11 .*"
118+ version = " 0.12 .*"
119119features = [ " try_paths" ]
120120
121121[dependencies .async-std ]
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 11[package ]
22name = " refract_core"
3- version = " 1.0.2 "
3+ version = " 1.0.3 "
44license = " WTFPL"
55authors = [" Josh Stoik <josh@blobfolio.com>" ]
66edition = " 2024"
Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff 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) ;
Original file line number Diff line number Diff 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 ) ; }
Original file line number Diff line number Diff line change 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
55Guided AVIF/JPEG XL/WebP conversion for JPEG and PNG sources.
66.SS USAGE:
You can’t perform that action at this time.
0 commit comments