summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColvin Wellborn <39858617+colvin@users.noreply.github.com>2020-01-04 13:22:46 -0500
committerDoug Tangren <d.tangren@gmail.com>2020-01-04 13:22:46 -0500
commit4c76501fbe640f9ef91feedcd0897518bfd08f68 (patch)
tree7e4eba3df5e0b841f26c10201e5d9b8a7474bf99
parenta368a93e1f217cd38a0fe52456b4ab03008d75d4 (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.rs7
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
}