Follow up from #537 - [ ] common clippy and format rules accross crates - [ ] fix compilation warnings - [ ] fix clippy errors - [ ] fix rustfmt errors - [ ] enable clippy and rustfmt in ci
Follow up from #537