Fix a bunch of other low-hanging style lints (#36498)
- **Fix a bunch of low hanging style lints like unnecessary-return** - **Fix single worktree violation** - **And the rest** Release Notes: - N/A
This commit is contained in:
parent
df9c2aefb1
commit
05fc0c432c
239 changed files with 854 additions and 1015 deletions
|
@ -21,13 +21,11 @@ pub fn run_package_conformity(_args: PackageConformityArgs) -> Result<()> {
|
|||
.manifest_path
|
||||
.parent()
|
||||
.and_then(|parent| parent.parent())
|
||||
.map_or(false, |grandparent_dir| {
|
||||
grandparent_dir.ends_with("extensions")
|
||||
});
|
||||
.is_some_and(|grandparent_dir| grandparent_dir.ends_with("extensions"));
|
||||
|
||||
let cargo_toml = read_cargo_toml(&package.manifest_path)?;
|
||||
|
||||
let is_using_workspace_lints = cargo_toml.lints.map_or(false, |lints| lints.workspace);
|
||||
let is_using_workspace_lints = cargo_toml.lints.is_some_and(|lints| lints.workspace);
|
||||
if !is_using_workspace_lints {
|
||||
eprintln!(
|
||||
"{package:?} is not using workspace lints",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue