As the title says is there an alternative for (void)variable like C/C++ in Rust.
I have a callback function which look something like:
fn on_window_event(window: &cgl_rs::Window, event: &cgl_rs::Event) -> bool {
// ... some code ...
false
}
Here I do not use the window
variable, so I get the unused warning.
I know that I can disable the warning but I wanted to know whether we can deal with this in any other nice way.