@@ -78,6 +78,8 @@ fn calculate_indentation(node: Option<Node>, newline: bool) -> usize {
78 "field_expression",
78 "field_expression",
80 "where_clause",
80 "where_clause",
83 let outdent = &["where", "}", "]", ")"];
85 let outdent = &["where", "}", "]", ")"];
@@ -213,6 +215,12 @@ mod test {
213 fn test_suggested_indent_for_line() {
215 fn test_suggested_indent_for_line() {
214 let doc = Rope::from(
216 let doc = Rope::from(
219+ io::{self, stdout, Stdout, Write},
216mod test {
224mod test {
217 fn hello_world() {
225 fn hello_world() {