Pass &str instead of cloning String

This commit is contained in:
Adrian Heine 2021-12-26 00:07:44 +01:00
parent 426b531e4c
commit 4938a51ad7

View file

@ -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)
}
}