We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39b80cb commit 1d6c860Copy full SHA for 1d6c860
src/librustdoc/config.rs
@@ -394,6 +394,7 @@ impl Options {
394
.iter()
395
.map(|s| {
396
let mut kv = s.splitn(2, '=');
397
+ // never panics because `splitn` always returns at least one element
398
let k = kv.next().unwrap().to_string();
399
let v = kv.next().unwrap_or("true").to_string();
400
(k, v)
0 commit comments