We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dfa882 commit 10651b8Copy full SHA for 10651b8
src/util.rs
@@ -3,7 +3,7 @@ use std::cmp::{min, Ordering};
3
use std::collections::HashMap;
4
use std::fmt::{Formatter, Result as FormatResult, Write};
5
6
-#[cfg(feature = "json")]
+#[cfg(feature = "json", feature = "yaml")]
7
pub(crate) fn to_pascal_case<T: AsRef<str>>(text: T) -> String {
8
let mut chars = text.as_ref().chars();
9
@@ -167,12 +167,7 @@ fn recurse_children<T: ConfigurationRoot>(
167
168
formatter.write_char('\n')?;
169
170
- recurse_children(
171
- root,
172
- &child.children(),
173
- formatter,
174
- &(indent.to_owned() + " "),
175
- )?;
+ recurse_children(root, &child.children(), formatter, &(indent.to_owned() + " "))?;
176
}
177
178
Ok(())
0 commit comments