Skip to content

refactor main#102

Merged
vilgotf merged 2 commits intotrunkfrom
vilgotf/refactor
Feb 21, 2026
Merged

refactor main#102
vilgotf merged 2 commits intotrunkfrom
vilgotf/refactor

Conversation

@vilgotf
Copy link
Member

@vilgotf vilgotf commented Feb 21, 2026

Simplifies main by grouping related items and removing nesting.

}

fn parse_env<T>(key: &str) -> Result<Option<T>, Box<dyn Error>>
fn parse_env<F>(key: &str) -> Result<Option<F>, Box<dyn Error>>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generic type of FromStr is idiomatically called F instead of T.

src/main.rs Outdated
info!("Listening on http://{}", address);

let mut tasks = JoinSet::new();
let tasks = TaskTracker::new();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Memory leak

@vilgotf vilgotf merged commit bcc788a into trunk Feb 21, 2026
8 checks passed
@vilgotf vilgotf deleted the vilgotf/refactor branch February 21, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants