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.
2 parents 3ffd24d + 09729aa commit 9a318adCopy full SHA for 9a318ad
src/book/bookconfig.rs
@@ -62,13 +62,13 @@ impl BookConfig {
62
63
// Read book.toml or book.json if exists
64
65
- if Path::new(root.join("book.toml").as_os_str()).exists() {
+ if root.join("book.toml").exists() {
66
67
debug!("[*]: Reading config");
68
let data = read_file(root.join("book.toml"));
69
self.parse_from_toml_string(&data);
70
71
- } else if Path::new(root.join("book.json").as_os_str()).exists() {
+ } else if root.join("book.json").exists() {
72
73
74
let data = read_file(root.join("book.json"));
0 commit comments