refactor: credential as alias of connections.
@@ -61,19 +61,6 @@ pub fn connection_options(i: Input) -> IResult<BTreeMap<String, String>> {
)(i)
}
-pub fn credentials_options(i: Input) -> IResult<BTreeMap<String, String>> {
- let string_options = map(
- rule! {
- (AWS_KEY_ID | AWS_SECRET_KEY) ~ "=" ~ #literal_string
- },
- |(k, _, v)| (k.text().to_string(), v),
- );
-
- map(rule! { "(" ~ (#string_options)* ~ ")"}, |(_, opts, _)| {
- BTreeMap::from_iter(opts.iter().map(|(k, v)| (k.to_lowercase(), v.clone())))
- })(i)
-}
-
pub fn format_options(i: Input) -> IResult<BTreeMap<String, String>> {
let option_type = map(
rule! {
@@ -147,7 +134,7 @@ pub fn uri_location(i: Input) -> IResult<UriLocation> {
rule! {
#literal_string
~ (CONNECTION ~ "=" ~ #connection_options)?
- ~ (CREDENTIALS ~ "=" ~ #credentials_options)?
+ ~ (CREDENTIALS ~ "=" ~ #connection_options)?
~ (ENCRYPTION ~ "=" ~ #options)?
~ (LOCATION_PREFIX ~ "=" ~ #literal_string)?
},
