From 263b424de375c0e7980eefd1b054f2cf61ee33a9 Mon Sep 17 00:00:00 2001 From: AndSDev Date: Mon, 9 Jun 2025 11:00:09 +0300 Subject: [PATCH] refactor: reduce the size of the S3 configuration struct --- src/config/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index 57c50b0a..7d4fe69a 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -265,8 +265,8 @@ impl From for Config { let credentials = rusty_s3::Credentials::new(key, secret); MediaBackendConfig::S3 { - bucket, - credentials, + bucket: Box::new(bucket), + credentials: Box::new(credentials), duration: Duration::from_secs(duration), path, directory_structure, @@ -543,8 +543,8 @@ pub enum MediaBackendConfig { directory_structure: DirectoryStructure, }, S3 { - bucket: rusty_s3::Bucket, - credentials: rusty_s3::Credentials, + bucket: Box, + credentials: Box, duration: Duration, path: Option, directory_structure: DirectoryStructure,