Skip to content

Commit cc35802

Browse files
committed
Happy Clippy
1 parent 50050bc commit cc35802

File tree

1 file changed

+3
-3
lines changed
  • rust/operator-binary/src/authorization

1 file changed

+3
-3
lines changed

rust/operator-binary/src/authorization/opa.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl SupersetOpaConfig {
4242
// CUSTOM_SECURITY_MANAGER = None => CUSTOM_SECURITY_MANAGER = ""
4343
// Could be better if not set.
4444
pub fn as_config(&self) -> BTreeMap<String, Option<String>> {
45-
let config = BTreeMap::from([
45+
BTreeMap::from([
4646
(
4747
"CUSTOM_SECURITY_MANAGER".to_string(),
4848
Some("OpaSupersetSecurityManager".to_string()),
@@ -56,6 +56,7 @@ impl SupersetOpaConfig {
5656
),
5757
// There is no proper way to interfere this without changing e.g. CRD's.
5858
// Thus, we go for an default and make it accessible through envOverrides.
59+
// TODO: Documentation
5960
(
6061
"STACKABLE_OPA_RULE".to_string(),
6162
Some("os.getenv('STACKABLE_OPA_RULE', 'user_roles')".to_string()),
@@ -68,7 +69,6 @@ impl SupersetOpaConfig {
6869
"STACKABLE_OPA_PACKAGE".to_string(),
6970
self.opa_package.clone(),
7071
),
71-
]);
72-
config
72+
])
7373
}
7474
}

0 commit comments

Comments
 (0)