ruff/crates/ruff
Dhruv Manilawala 72b6c26101 Simplify LinterResult, avoid cloning ParseError (#11903)
## Summary

Follow-up to #11902

This PR simplifies the `LinterResult` struct by avoiding the generic and
not store the `ParseError`.

This is possible because the callers already have access to the
`ParseError` via the `Parsed` output. This also means that we can
simplify the return type of `check_path` and avoid the generic `T` on
`LinterResult`.

## Test Plan

`cargo insta test`
2024-06-27 13:44:11 +02:00
..
resources/test/fixtures Rename ruff_cli crate to ruff (#9557) 2024-01-16 17:47:01 -05:00
src Simplify LinterResult, avoid cloning ParseError (#11903) 2024-06-27 13:44:11 +02:00
tests Avoid displaying syntax error as log message (#11902) 2024-06-27 13:44:11 +02:00
build.rs Rename ruff_cli crate to ruff (#9557) 2024-01-16 17:47:01 -05:00
Cargo.toml Migrate release workflow to cargo-dist (#9559) 2024-06-27 13:44:11 +02:00