fix build to last Rust
- static -> const
- warnings: const uppercase