Azure / GuestProxyAgent

MIT License
3 stars 10 forks source link

General idiom usage #117

Open TheSignPainter98 opened 2 months ago

TheSignPainter98 commented 2 months ago

Hi there! I took a quick look through this codebase and have a few friendly pointers to help get the most out of using Rust :) I think at the moment, much of the code I've seen feels as though it's been translated from another language such as C and although they can occupy much the same space, idiomatic Rust and C are quite different.

Please note that these things I spotted come from a sample of the files, so some impressions may be spurious. I also grouped these into one issue to avoid spam, so apologies for the length. Anyway, in no particular order, here's what I found:

ZhidongPeng commented 2 months ago

Thanks for your feedback list, I will fix them gradually with priority.