cinderella

[unmaintained] simple CI engine
Log | Files | Refs | README | LICENSE

commit 04c06f5141bb4b1f0b9c58d29487ed3dff9bfb23
parent 1456c82dd10349b5026d81205440a15236c9021a
Author: Stefan Koch <programming@stefan-koch.name>
Date:   Sat, 14 Sep 2019 19:14:37 +0200

not using dyn is now deprecated

Diffstat:
Msrc/vcs.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vcs.rs b/src/vcs.rs @@ -5,7 +5,7 @@ use std::path::{Path, PathBuf}; use git2::Repository; pub trait CodeSource { - fn fetch(&self, target: &Path) -> Result<WorkDir, Box<Error>>; + fn fetch(&self, target: &Path) -> Result<WorkDir, Box<dyn Error>>; } pub struct Git { @@ -17,7 +17,7 @@ pub struct WorkDir { } impl CodeSource for Git { - fn fetch(&self, target: &Path) -> Result<WorkDir, Box<Error>> { + fn fetch(&self, target: &Path) -> Result<WorkDir, Box<dyn Error>> { let repo = Repository::clone(&self.src, target)?; let path = repo.workdir() .expect("Newly cloned repo is expected to have a workdir");