Cargo fix
This commit is contained in:
parent
5505c09db4
commit
9bab810b91
38 changed files with 235 additions and 235 deletions
|
|
@ -18,7 +18,7 @@ impl<D> Dir<D> where D: AsRef<str> {
|
|||
}
|
||||
|
||||
impl<D> Symbol for Dir<D> where D: AsRef<str> {
|
||||
fn target_reached(&self) -> Result<bool, Box<Error>> {
|
||||
fn target_reached(&self) -> Result<bool, Box<dyn Error>> {
|
||||
let metadata = fs::metadata(self.path.as_ref());
|
||||
// Check if dir exists
|
||||
if let Err(e) = metadata {
|
||||
|
|
@ -35,8 +35,8 @@ impl<D> Symbol for Dir<D> where D: AsRef<str> {
|
|||
}
|
||||
}
|
||||
|
||||
fn execute(&self) -> Result<(), Box<Error>> {
|
||||
fs::create_dir(self.path.as_ref()).map_err(|e| Box::new(e) as Box<Error>)
|
||||
fn execute(&self) -> Result<(), Box<dyn Error>> {
|
||||
fs::create_dir(self.path.as_ref()).map_err(|e| Box::new(e) as Box<dyn Error>)
|
||||
}
|
||||
|
||||
fn get_prerequisites(&self) -> Vec<Resource> {
|
||||
|
|
@ -51,11 +51,11 @@ impl<D> Symbol for Dir<D> where D: AsRef<str> {
|
|||
Some(vec![ Resource::new("dir", self.path.as_ref()) ])
|
||||
}
|
||||
|
||||
fn as_action<'a>(&'a self, runner: &'a SymbolRunner) -> Box<Action + 'a> {
|
||||
fn as_action<'a>(&'a self, runner: &'a dyn SymbolRunner) -> Box<dyn Action + 'a> {
|
||||
Box::new(SymbolAction::new(runner, self))
|
||||
}
|
||||
|
||||
fn into_action<'a>(self: Box<Self>, runner: &'a SymbolRunner) -> Box<Action + 'a> where Self: 'a {
|
||||
fn into_action<'a>(self: Box<Self>, runner: &'a dyn SymbolRunner) -> Box<dyn Action + 'a> where Self: 'a {
|
||||
Box::new(OwnedSymbolAction::new(runner, *self))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue