Add Imenu support for rust-mode.

+ Use rust-mode for .rc files too.
+ Delete trailing whitespace.