Skip to content

Commit bf559e0

Browse files
committed
Fix unrelated clippy warnings
1 parent d285b9b commit bf559e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rewatch/src/build/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ pub fn generate_asts(
199199
&build_state.bsc_path,
200200
) {
201201
has_failure = true;
202-
stderr.push_str(&format!("{}\n", err));
202+
stderr.push_str(&format!("{err}\n"));
203203
}
204204
let mlmap_hash_after = helpers::compute_file_hash(Path::new(&compile_path));
205205

rewatch/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ pub fn flatten_ppx_flags(
352352
let path = helpers::try_package_path(
353353
package_config,
354354
project_context,
355-
format!("{}{}{}", &package_config.name, MAIN_SEPARATOR, y).as_str(),
355+
&format!("{}{}{}", &package_config.name, MAIN_SEPARATOR, y),
356356
)
357357
.map(|p| p.to_string_lossy().to_string())?;
358358

@@ -374,7 +374,7 @@ pub fn flatten_ppx_flags(
374374
Some('.') => helpers::try_package_path(
375375
package_config,
376376
project_context,
377-
format!("{}{}{}", package_config.name, MAIN_SEPARATOR, &ys[0]).as_str(),
377+
&format!("{}{}{}", package_config.name, MAIN_SEPARATOR, &ys[0]),
378378
)
379379
.map(|p| p.to_string_lossy().to_string())?,
380380
_ => helpers::try_package_path(package_config, project_context, &ys[0])

0 commit comments

Comments
 (0)