From a84a329188361dba2a002bf37a5b728283374275 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 21 May 2021 20:30:46 +0100 Subject: [PATCH] apitest: Make OtterArgsSpec take &dyn Substitutor Signed-off-by: Ian Jackson --- apitest/apitest.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apitest/apitest.rs b/apitest/apitest.rs index 9d1151de..e3d3be53 100644 --- a/apitest/apitest.rs +++ b/apitest/apitest.rs @@ -742,16 +742,16 @@ impl Drop for OtterOutput { } pub trait OtterArgsSpec { - fn to_args(&self, ds: &DirSubst) -> Vec; + fn to_args(&self, ds: &dyn Substitutor) -> Vec; } impl OtterArgsSpec for [S] where for <'s> &'s S: Into { - fn to_args(&self, _: &DirSubst) -> Vec { + fn to_args(&self, _: &dyn Substitutor) -> Vec { self.iter().map(|s| s.into()).collect() } } impl OtterArgsSpec for Vec where for <'s> &'s S: Into { - fn to_args(&self, ds: &DirSubst) -> Vec { + fn to_args(&self, ds: &dyn Substitutor) -> Vec { self.as_slice().to_args(ds) } } -- 2.30.2