]> git.proxmox.com Git - rustc.git/blobdiff - vendor/mdbook/src/utils/toml_ext.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / vendor / mdbook / src / utils / toml_ext.rs
index 908ab2dbef0ea727723c92839c451cdd930e778c..bf25ad11bb0b8788d9c9ee78727b9cb70e6f82c5 100644 (file)
@@ -53,7 +53,7 @@ impl TomlExt for Value {
 }
 
 fn split(key: &str) -> Option<(&str, &str)> {
-    let ix = key.find(".")?;
+    let ix = key.find('.')?;
 
     let (head, tail) = key.split_at(ix);
     // splitting will leave the "."