Skip to content

Commit 38778cb

Browse files
clippy: rectify the needless pass by value
Signed-off-by: Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
1 parent 4146991 commit 38778cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libroast/src/operations/recomprizz.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub fn recomprizz_opts(recomprizz_args: RecomprizzArgs) -> io::Result<()>
100100
include: recomprizz_args.include,
101101
};
102102

103-
roast_opts(roast_args, start_trace)?;
103+
roast_opts(&roast_args, start_trace)?;
104104

105105
info!("📥 Finished Recomprizz.");
106106
Ok(())

libroast/src/operations/roast/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ pub fn process_include_paths(
199199
Ok(())
200200
}
201201

202-
pub fn roast_opts(roast_args: cli::RoastArgs, start_trace: bool) -> io::Result<()>
202+
pub fn roast_opts(roast_args: &cli::RoastArgs, start_trace: bool) -> io::Result<()>
203203
{
204204
if start_trace
205205
{
@@ -259,7 +259,7 @@ pub fn roast_opts(roast_args: cli::RoastArgs, start_trace: bool) -> io::Result<(
259259
&target_path,
260260
&exclude_canonicalized_paths,
261261
&setup_workdir,
262-
&roast_args,
262+
roast_args,
263263
)?;
264264
}
265265

@@ -270,7 +270,7 @@ pub fn roast_opts(roast_args: cli::RoastArgs, start_trace: bool) -> io::Result<(
270270
&exclude_canonicalized_paths,
271271
&target_path,
272272
&setup_workdir,
273-
&roast_args,
273+
roast_args,
274274
)?;
275275
}
276276

0 commit comments

Comments
 (0)