Skip to content

Commit

Permalink
Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Jan 9, 2025
1 parent 3ed9c17 commit 2bec8ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions buildpacks/ruby/src/layers/metrics_agent_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ fn write_execd_script(
fs_err::write(
&execd,
format!(
r#"#!/usr/bin/env bash
r"#!/usr/bin/env bash
{daemon} --log {log} --loop-path {run_loop} --agentmon {agentmon}
"#,
",
log = log.display(),
daemon = daemon.display(),
run_loop = run_loop.display(),
Expand Down
2 changes: 2 additions & 0 deletions buildpacks/ruby/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ mod user_errors;

#[cfg(test)]
use libcnb_test as _;
#[cfg(test)]
use pretty_assertions as _;

use clap as _;

Expand Down
2 changes: 1 addition & 1 deletion buildpacks/ruby/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ fn chmod_plus_x(path: &Path) -> Result<(), std::io::Error> {
fn copy_dir_all(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> Result<(), std::io::Error> {
let src = src.as_ref();
let dst = dst.as_ref();
fs_err::create_dir_all(&dst)?;
fs_err::create_dir_all(dst)?;
for entry in fs_err::read_dir(src)? {
let entry = entry?;
let ty = entry.file_type()?;
Expand Down

0 comments on commit 2bec8ef

Please sign in to comment.