Browse Source

Pass &str instead of cloning String

master
Adrian Heine 2 years ago
parent
commit
4938a51ad7
  1. 2
      src/builder.rs

2
src/builder.rs

@ -790,6 +790,6 @@ impl<D: Clone> ImplementationBuilder<Cron<D>> for DefaultBuilder {
(): &<Cron<D> as Resource>::Artifact,
user_name: <Self::Prerequisites as ToArtifact>::Artifact,
) -> Self::Implementation {
CronSymbol::new((user_name.0).0, resource.1.clone(), &StdCommandRunner)
CronSymbol::new((user_name.0).0, &resource.1, &StdCommandRunner)
}
}
Loading…
Cancel
Save