From 10cb26037e446a984abcce19610bc4551071ee20 Mon Sep 17 00:00:00 2001 From: Aleks Todorov Date: Sun, 18 Feb 2024 15:58:01 +0000 Subject: [PATCH] Avoid making snowflakes public Since they are now in the top-level module, they are accessible everywhere by default. --- backend-rs/streamfox/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend-rs/streamfox/src/main.rs b/backend-rs/streamfox/src/main.rs index 8decb19..5a2db28 100644 --- a/backend-rs/streamfox/src/main.rs +++ b/backend-rs/streamfox/src/main.rs @@ -56,7 +56,7 @@ pub struct AppState { } pub struct Snowflakes { - pub user_snowflake: SnowflakeGenerator, + user_snowflake: SnowflakeGenerator, } #[tokio::main]