make sure to borrow in getters

This commit is contained in:
seth 2024-03-30 03:42:53 -04:00
parent 29ed728fc1
commit 1ff95de3bf
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
9 changed files with 23 additions and 24 deletions

View file

@ -53,7 +53,7 @@ async fn setup(
) -> Result<Data> {
let config = Config::new_from_env();
let storage = if let Some(url) = &config.clone().bot_config().redis_url() {
let storage = if let Some(url) = config.bot_config().redis_url() {
Some(Storage::from_url(url)?)
} else {
None