thomasarmel / socket-server-mocker

Mock socket server in Rust, for testing various network clients.
https://crates.io/crates/socket-server-mocker
MIT License
0 stars 2 forks source link

Use SocketAddr and `thiserror` errors #10

Closed nyurik closed 1 week ago

nyurik commented 1 week ago

P.S. a good rule of thumb I found useful for naming variables: the smaller the scope of the variable, the shorter should be its name.

thomasarmel commented 1 week ago

the smaller the scope of the variable, the shorter should be its name. ok

nyurik commented 1 week ago

thx for looking at it! Let me clarify how these levels work, to prevent accidental misuse:

This achieves what you want -- clean code with comments, while it helps keep developing much faster.

thomasarmel commented 1 week ago

Ok good for me, thanks!