Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Conversation

@zamderax
Copy link
Member

@zamderax zamderax commented Jul 29, 2025

Removed the redundant new_preconnection() free function that was just forwarding to Preconnection::new() without any additional logic. Updated all 100+ test occurrences to directly use Preconnection::new() instead. This simplifies the API by providing only one way to create a Preconnection instance. All tests continue to pass without any issues.

🤖 Generated with Claude Code

Developer added 3 commits July 28, 2025 21:28
- Added pre-commit hook that runs cargo fmt --check
- Created setup scripts for both Unix and Windows platforms
- Updated README with instructions for setting up git hooks
- Ensures all code is properly formatted before commits

Developers can set up hooks by running setup-hooks.sh (Unix) or setup-hooks.bat (Windows)
- Removed the redundant new_preconnection() free function
- Updated all tests to use Preconnection::new() directly
- This simplifies the API by having only one way to create a Preconnection

The free function was completely redundant as it just forwarded to
Preconnection::new() without any additional logic or value.
@zamderax zamderax merged commit e44f8a7 into main Jul 29, 2025
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants