fix warnings: deprecated to_owned, non_snake_case_functions

Fix all compile warnings.

* deprecated to_owned() and into_owned() => ``*to_string()``
* non_snake_case_functions => add allow attribute