Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(node): add workspace lints (#1830)
* chore(network): add workspace lints to network Lior banned `as` repo-wide, unless absolutely necessary. Nearly all as uses can be replaced with [Try]From which doesn't have implicit coercions like as (we encountered several bugs due to these coercions). Motivation: we are standardizing lints across the repo and CI, instead of each crate having separate sets of lints. Note: i left the `as f64` since `gauge!` expects f64, even though the metrics themselves are integers. This is probably fixable by using `counter!` instead of `gauge!`, but i haven't found anyone who knows how to test these metrics so i'm leaving it for now. I left them at the statement level intentionaly, instead of the module level, so that it won't be forgotten. * chore(node): add workspace lints Lior banned `as` repo-wide, unless absolutely necessary. Nearly all as uses can be replaced with [Try]From which doesn't have implicit coercions like as (we encountered several bugs due to these coercions). Motivation: we are standardizing lints across the repo and CI, instead of each crate having separate sets of lints. Note: the change in pointers.rs is due to cargo doc being triggered due to changes in the crate, and cargo doc thought it was a busted HTML tag :sweat_smile: Co-Authored-By: Gilad Chase <gilad@starkware.com>
- Loading branch information