From 4c76501fbe640f9ef91feedcd0897518bfd08f68 Mon Sep 17 00:00:00 2001 From: Colvin Wellborn <39858617+colvin@users.noreply.github.com> Date: Sat, 4 Jan 2020 13:22:46 -0500 Subject: make image and container option builder interfaces consistent (#211) `ContainerListOptionsBuilder::all()` took no arguments, assuming a true value. However, `ImageListOptionsBuilder::all()` accepts a boolean. To make these consistent, the latter no longer accepts a boolean and, like the former, assumes true. --- src/builder.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 631c1af..a189de5 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -1306,11 +1306,8 @@ impl ImageListOptionsBuilder { self } - pub fn all( - &mut self, - a: bool, - ) -> &mut Self { - self.params.insert("all", a.to_string()); + pub fn all(&mut self) -> &mut Self { + self.params.insert("all", "true".to_owned()); self } -- cgit v1.2.3