aboutsummaryrefslogtreecommitdiff
path: root/crates/cfg
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2020-10-22 18:19:05 +0100
committerJonas Schievink <[email protected]>2020-10-22 18:19:05 +0100
commit978cc936491d23bd38ef18aa98ddcc7472ef5f54 (patch)
tree8cfc196d5d2d86c8ddad74a8a38dd357e0c6dccf /crates/cfg
parent68b17986c7c272d9be8df9a7abb9b162329b9d65 (diff)
Fix typo
Diffstat (limited to 'crates/cfg')
-rw-r--r--crates/cfg/src/dnf.rs1
-rw-r--r--crates/cfg/src/lib.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/crates/cfg/src/dnf.rs b/crates/cfg/src/dnf.rs
index 35f946e6f..a08c307da 100644
--- a/crates/cfg/src/dnf.rs
+++ b/crates/cfg/src/dnf.rs
@@ -458,6 +458,7 @@ mod test {
458 &opts, 458 &opts,
459 expect![["test and test2 are enabled"]], 459 expect![["test and test2 are enabled"]],
460 ); 460 );
461 check_why_inactive("#![cfg(all(a, b))]", &opts, expect![["a and b are disabled"]]);
461 check_why_inactive( 462 check_why_inactive(
462 "#![cfg(all(not(test), a))]", 463 "#![cfg(all(not(test), a))]",
463 &opts, 464 &opts,
diff --git a/crates/cfg/src/lib.rs b/crates/cfg/src/lib.rs
index 0b0734213..28a40a082 100644
--- a/crates/cfg/src/lib.rs
+++ b/crates/cfg/src/lib.rs
@@ -137,7 +137,7 @@ impl fmt::Display for InactiveReason {
137 for (i, atom) in self.disabled.iter().enumerate() { 137 for (i, atom) in self.disabled.iter().enumerate() {
138 let sep = match i { 138 let sep = match i {
139 0 => "", 139 0 => "",
140 _ if i == self.enabled.len() - 1 => " and ", 140 _ if i == self.disabled.len() - 1 => " and ",
141 _ => ", ", 141 _ => ", ",
142 }; 142 };
143 f.write_str(sep)?; 143 f.write_str(sep)?;