Skip to content

Used cfg(test) on some functions over allow dead code and fixed some warnings#12

Open
BoolPurist wants to merge 1 commit into
robinfriedli:masterfrom
BoolPurist:refacture_remove_allow_dead_cfg_test
Open

Used cfg(test) on some functions over allow dead code and fixed some warnings#12
BoolPurist wants to merge 1 commit into
robinfriedli:masterfrom
BoolPurist:refacture_remove_allow_dead_cfg_test

Conversation

@BoolPurist
Copy link
Copy Markdown

This way we do not need any comments and are more disruptive with code. It allows reduces compile time for the user of the library

I removed some previously annotated function with allow dead code.
Reason: Even the tests do not use them at all.
They were private to the library anyway, so the user only would get more compile time.
Dead code can be retrieved via source code control if needed later

  1. Fixed clippy warning about auto-deref

  2. Removed unused code for ThreadSafe trait: ThreadSafe is not used anywhere.
    Might be a relict of the past ?

This way we do not need any comments and are more disruptive with code.
It allows reduces compile time for the user of the library

I removed some previously annotated function with allow dead code
Reason: Even the tests do not use them at all.
They were private to the library anyway, so the user only would get
more compile time.
Dead code can be retrieved via source code control if needed later

2. Fixed clippy warning about auto-deref

3. Removed unused code for ThreadSafe trait:
ThreadSafe is not used anywhere.
Might be a relict of the past ?
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.

1 participant