Skip to content

Commit e97b36a

Browse files
authored
double negation
1 parent ffc2923 commit e97b36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fn do_read_manifest(
7878
let (mut manifest, paths) =
7979
TomlManifest::to_real_manifest(&manifest, source_id, package_root, config)?;
8080
add_unused(manifest.warnings_mut());
81-
if !manifest.targets().iter().any(|t| !t.is_custom_build()) {
81+
if manifest.targets().iter().all(|t| t.is_custom_build()) {
8282
bail!(
8383
"no targets specified in the manifest\n \
8484
either src/lib.rs, src/main.rs, a [lib] section, or \

0 commit comments

Comments
 (0)