diff options
author | Colvin Wellborn <39858617+colvin@users.noreply.github.com> | 2020-01-04 13:22:46 -0500 |
---|---|---|
committer | Doug Tangren <d.tangren@gmail.com> | 2020-01-04 13:22:46 -0500 |
commit | 4c76501fbe640f9ef91feedcd0897518bfd08f68 (patch) | |
tree | 7e4eba3df5e0b841f26c10201e5d9b8a7474bf99 | |
parent | a368a93e1f217cd38a0fe52456b4ab03008d75d4 (diff) |
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.
-rw-r--r-- | src/builder.rs | 7 |
1 files 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 } |