"Hmmm, this is thoroughly meh..." <- > <@diondokter:matrix.org> Hmmm, this is thoroughly meh, but I get to be lazy and not have make a new release for the crate: > > ```rust > let mut builder = at_commands::builder::CommandBuilder::create_set(buffer, true) > .named("+CHTTPCREATE") > .with_string_parameter("http://blabla"); > > if let Some(foo) = foo { > builder = builder.with_int_parameter(foo); > } > > builder.finish() > ``` Couldn't you just produce the unmodified `self` in case of `None`? ```rust /// Add an optional integer parameter. pub fn with_optional_int_parameter>(self, value: Option) -> Self { match value { None => self, Some(value) => self.with_int_parameter(value), } } ```