A first look at Rust in the 6.1 kernel
A first look at Rust in the 6.1 kernel
Posted Oct 13, 2022 21:38 UTC (Thu) by xav (guest, #18536)Parent article: A first look at Rust in the 6.1 kernel
A small clarification: the Drop implementation is totally optional. In this example you clearly see it does nothing of value except printing logs; you could just omit it, the compiler will generate the necessary code for you (here, it will free the memory allocated for the numbers as well as properly finalizing the module).
