Skip to content

Commit ade0473

Browse files
committed
chore: Use to_owned for &str -> String
1 parent 839c07c commit ade0473

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rust/operator-binary/src/config.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,23 @@ pub fn add_superset_config(
4343
) -> Result<(), Error> {
4444
config.insert(
4545
SupersetConfigOptions::SecretKey.to_string(),
46-
"os.environ.get('SECRET_KEY')".into(),
46+
"os.environ.get('SECRET_KEY')".to_owned(),
4747
);
4848
config.insert(
4949
SupersetConfigOptions::SqlalchemyDatabaseUri.to_string(),
50-
"os.environ.get('SQLALCHEMY_DATABASE_URI')".into(),
50+
"os.environ.get('SQLALCHEMY_DATABASE_URI')".to_owned(),
5151
);
5252
config.insert(
5353
SupersetConfigOptions::StatsLogger.to_string(),
54-
"StatsdStatsLogger(host='0.0.0.0', port=9125)".into(),
54+
"StatsdStatsLogger(host='0.0.0.0', port=9125)".to_owned(),
5555
);
5656
config.insert(
5757
SupersetConfigOptions::MapboxApiKey.to_string(),
58-
"os.environ.get('MAPBOX_API_KEY', '')".into(),
58+
"os.environ.get('MAPBOX_API_KEY', '')".to_owned(),
5959
);
6060
config.insert(
6161
SupersetConfigOptions::LoggingConfigurator.to_string(),
62-
"StackableLoggingConfigurator()".into(),
62+
"StackableLoggingConfigurator()".to_owned(),
6363
);
6464
// Flask AppBuilder requires this to be set, otherwise the web ui cannot be used.
6565
// We chose to make it an expression in case the user wants to override it through

0 commit comments

Comments
 (0)