@@ -596,7 +596,7 @@ impl App {
596596 ///
597597 /// Under the hood, this defers to either `view_home`, `view_encoder`, or
598598 /// `view_ab` depending on the state of things.
599- pub ( super ) fn view ( & self ) -> Container < Message > {
599+ pub ( super ) fn view ( & self ) -> Container < ' _ , Message > {
600600 // If we're processing an image, return the A/B screen.
601601 if self . current . as_ref ( ) . is_some_and ( CurrentImage :: active) {
602602 // Unless we _just_ switched encoders, in which case we should
@@ -624,7 +624,7 @@ impl App {
624624 ///
625625 /// (A warning/error message may also be presented, but they're short-
626626 /// lived and uncommon.)
627- fn view_home ( & self ) -> Container < Message > {
627+ fn view_home ( & self ) -> Container < ' _ , Message > {
628628 container (
629629 column ! (
630630 self . view_settings( ) ,
@@ -641,7 +641,7 @@ impl App {
641641 /// # View: About.
642642 ///
643643 /// This returns the application name, version, and repository URL.
644- fn view_about ( & self ) -> Column < Message > {
644+ fn view_about ( & self ) -> Column < ' _ , Message > {
645645 column ! (
646646 rich_text!(
647647 emphasize!( span( "Refract " ) , Skin :: PINK ) ,
@@ -663,7 +663,7 @@ impl App {
663663 /// If the user did something that did nothing instead of something, this
664664 /// returns a message explaining why they got nothing instead of something,
665665 /// lest they think it's our fault!
666- fn view_error ( & self ) -> Option < Container < Message > > {
666+ fn view_error ( & self ) -> Option < Container < ' _ , Message > > {
667667 use iced:: widget:: container:: Style ;
668668
669669 self . error . map ( |err|
@@ -690,7 +690,7 @@ impl App {
690690 ///
691691 /// This returns button widgets for adding file(s) or directories, and
692692 /// some basic instructions for same.
693- fn view_enqueue_buttons ( & self ) -> Container < Message > {
693+ fn view_enqueue_buttons ( & self ) -> Container < ' _ , Message > {
694694 container (
695695 column ! (
696696 row!(
@@ -865,7 +865,7 @@ impl App {
865865 ///
866866 /// This collects and returns the contents of the `view_settings_*`
867867 /// helpers, along with the add-file buttons and about information.
868- fn view_settings ( & self ) -> Container < Message > {
868+ fn view_settings ( & self ) -> Container < ' _ , Message > {
869869 container (
870870 row ! (
871871 self . view_settings_fmt( ) ,
@@ -889,7 +889,7 @@ impl App {
889889 ///
890890 /// This returns a list of checkboxes corresponding to the available
891891 /// next-gen image formats (the encoders that will be used).
892- fn view_settings_fmt ( & self ) -> Column < Message > {
892+ fn view_settings_fmt ( & self ) -> Column < ' _ , Message > {
893893 column ! (
894894 emphasize!( text( "Formats" ) , Skin :: PINK ) ,
895895 chk!( self , "AVIF" , FMT_AVIF ) ,
@@ -902,7 +902,7 @@ impl App {
902902 /// # View: Mode Checkboxes.
903903 ///
904904 /// This returns checkboxes for the various compression modes.
905- fn view_settings_mode ( & self ) -> Column < Message > {
905+ fn view_settings_mode ( & self ) -> Column < ' _ , Message > {
906906 column ! (
907907 emphasize!( text( "Compression" ) , Skin :: PINK ) ,
908908 chk!( self , "Lossless" , MODE_LOSSLESS ) ,
@@ -922,7 +922,7 @@ impl App {
922922 ///
923923 /// This returns checkboxes for the program's one-off settings, i.e.
924924 /// night mode and automatic saving.
925- fn view_settings_other ( & self ) -> Column < Message > {
925+ fn view_settings_other ( & self ) -> Column < ' _ , Message > {
926926 column ! (
927927 emphasize!( text( "Other" ) , Skin :: PINK ) ,
928928 tip!(
@@ -948,7 +948,7 @@ impl App {
948948 ///
949949 /// The constant format changes can get confusing. This screen is used to
950950 /// (very briefly) announce the changes.
951- fn view_encoder ( & self , kind : ImageKind ) -> Container < Message > {
951+ fn view_encoder ( & self , kind : ImageKind ) -> Container < ' _ , Message > {
952952 use iced:: widget:: container:: Style ;
953953
954954 container (
@@ -1001,7 +1001,7 @@ impl App {
10011001 ///
10021002 /// It comprises a title-like bar, image stack, and footer with
10031003 /// instructions, progress, and action buttons.
1004- fn view_ab ( & self ) -> Container < Message > {
1004+ fn view_ab ( & self ) -> Container < ' _ , Message > {
10051005 container (
10061006 column ! (
10071007 self . view_ab_header( ) ,
@@ -1027,7 +1027,7 @@ impl App {
10271027 /// This returns the "Accept" and "Reject" buttons used for candidate image
10281028 /// feedback, though they'll only be enabled if the program is ready to
10291029 /// receive said feedback.
1030- fn view_ab_feedback ( & self ) -> Column < Message > {
1030+ fn view_ab_feedback ( & self ) -> Column < ' _ , Message > {
10311031 let Some ( current) = & self . current else { return Column :: new ( ) ; } ;
10321032 let active = current. candidate . is_some ( ) ;
10331033 let b_side = active && self . has_flag ( OTHER_BSIDE ) ;
@@ -1102,7 +1102,7 @@ impl App {
11021102 /// 1. In A/B mode, it contains the format and quality details for the image actively being displayed, i.e. the source or candidate.
11031103 /// 2. In lossless-only mode, it lets the user know that no feedback will be required.
11041104 /// 3. Otherwise a generic "reticulating splines" message, since there's nothing to do but wait.
1105- fn view_ab_header ( & self ) -> Container < Message > {
1105+ fn view_ab_header ( & self ) -> Container < ' _ , Message > {
11061106 use iced:: widget:: container:: Style ;
11071107
11081108 let mut row = Row :: new ( )
@@ -1182,7 +1182,7 @@ impl App {
11821182 ///
11831183 /// It also includes a checkbox to toggle night mode, since visually it
11841184 /// fits better in this column than anywhere else.
1185- fn view_ab_progress ( & self ) -> Column < Message > {
1185+ fn view_ab_progress ( & self ) -> Column < ' _ , Message > {
11861186 let Some ( current) = self . current . as_ref ( ) else { return Column :: new ( ) ; } ;
11871187
11881188 let active = current. candidate . is_some ( ) ;
@@ -1245,7 +1245,7 @@ impl App {
12451245 ///
12461246 /// The image itself is technically optional, but should always be present
12471247 /// in practice.
1248- fn view_image ( & self ) -> Stack < Message > {
1248+ fn view_image ( & self ) -> Stack < ' _ , Message > {
12491249 Stack :: with_capacity ( 3 )
12501250 . push ( self . view_image_checkers_a ( ) )
12511251 . push_maybe ( self . view_image_checkers_b ( ) )
@@ -1258,7 +1258,7 @@ impl App {
12581258 ///
12591259 /// Produce a checkered background to make it easier to visualize image
12601260 /// transparency.
1261- fn view_image_checkers_a ( & self ) -> Container < Message > {
1261+ fn view_image_checkers_a ( & self ) -> Container < ' _ , Message > {
12621262 container (
12631263 image ( self . cache . checkers_a . clone ( ) )
12641264 . content_fit ( ContentFit :: None )
@@ -1272,7 +1272,7 @@ impl App {
12721272 ///
12731273 /// This adds a "B" to every fourth square for added emphasis, but only
12741274 /// when viewing a candidate image.
1275- fn view_image_checkers_b ( & self ) -> Option < Container < Message > > {
1275+ fn view_image_checkers_b ( & self ) -> Option < Container < ' _ , Message > > {
12761276 if self . has_flag ( OTHER_BSIDE ) && self . has_candidate ( ) {
12771277 Some (
12781278 container (
@@ -1296,7 +1296,7 @@ impl App {
12961296 ///
12971297 /// This method is technically fallible, but in practice it should never
12981298 /// not return something.
1299- fn view_image_image ( & self ) -> Option < Container < Message > > {
1299+ fn view_image_image ( & self ) -> Option < Container < ' _ , Message > > {
13001300 use iced:: widget:: scrollable:: {
13011301 Direction ,
13021302 Rail ,
@@ -1355,7 +1355,7 @@ impl App {
13551355 ///
13561356 /// This returns a simple legend illustrating the available keyboard
13571357 /// shortcuts that can be used in lieu of the button widgets.
1358- fn view_keyboard_shortcuts ( & self ) -> Column < Message > {
1358+ fn view_keyboard_shortcuts ( & self ) -> Column < ' _ , Message > {
13591359 let Some ( current) = self . current . as_ref ( ) else { return Column :: new ( ) ; } ;
13601360 let src_kind = current. input_kind ( ) ;
13611361 let dst_kind = current. output_kind ( ) . unwrap_or ( ImageKind :: Invalid ) ;
@@ -2287,7 +2287,7 @@ fn cli_log_arg(arg: &str) {
22872287///
22882288/// Split the file name into stem and extension parts, trimming the stem if
22892289/// too long, and checking that the extension is appropriate for JPEG/PNG.
2290- fn split_ext ( src : & Path ) -> Option < ( Cow < str > , & str ) > {
2290+ fn split_ext ( src : & Path ) -> Option < ( Cow < ' _ , str > , & str ) > {
22912291 use unicode_width:: UnicodeWidthStr ;
22922292
22932293 let ext = src. extension ( ) . and_then ( OsStr :: to_str) ?;
0 commit comments