Loading tools/pdl/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -49,6 +49,5 @@ rust_test_host { ], data: [ ":rustfmt", "rustfmt.toml", ], } tools/pdl/rustfmt.tomldeleted 120000 → 0 +0 −1 Original line number Diff line number Diff line ../../rustfmt.toml No newline at end of file tools/pdl/src/generator.rs +4 −4 Original line number Diff line number Diff line Loading @@ -506,7 +506,7 @@ mod tests { fn test_generate_preamble() { let actual_code = generate_preamble(Path::new("some/path/foo.pdl")).unwrap(); let expected_code = include_str!("../test/generated/preamble.rs"); assert_eq_with_diff(&rustfmt(&actual_code), expected_code); assert_eq_with_diff(&rustfmt(&actual_code), &rustfmt(expected_code)); } #[test] Loading @@ -522,7 +522,7 @@ mod tests { let decl = &grammar.declarations[0]; let actual_code = generate_decl(&grammar, &packets, &children, decl).unwrap(); let expected_code = include_str!("../test/generated/packet_decl_empty.rs"); assert_eq_with_diff(&rustfmt(&actual_code), expected_code); assert_eq_with_diff(&rustfmt(&actual_code), &rustfmt(expected_code)); } #[test] Loading @@ -542,7 +542,7 @@ mod tests { let decl = &grammar.declarations[0]; let actual_code = generate_decl(&grammar, &packets, &children, decl).unwrap(); let expected_code = include_str!("../test/generated/packet_decl_simple_little_endian.rs"); assert_eq_with_diff(&rustfmt(&actual_code), expected_code); assert_eq_with_diff(&rustfmt(&actual_code), &rustfmt(expected_code)); } #[test] Loading @@ -562,6 +562,6 @@ mod tests { let decl = &grammar.declarations[0]; let actual_code = generate_decl(&grammar, &packets, &children, decl).unwrap(); let expected_code = include_str!("../test/generated/packet_decl_simple_big_endian.rs"); assert_eq_with_diff(&rustfmt(&actual_code), expected_code); assert_eq_with_diff(&rustfmt(&actual_code), &rustfmt(expected_code)); } } Loading
tools/pdl/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -49,6 +49,5 @@ rust_test_host { ], data: [ ":rustfmt", "rustfmt.toml", ], }
tools/pdl/rustfmt.tomldeleted 120000 → 0 +0 −1 Original line number Diff line number Diff line ../../rustfmt.toml No newline at end of file
tools/pdl/src/generator.rs +4 −4 Original line number Diff line number Diff line Loading @@ -506,7 +506,7 @@ mod tests { fn test_generate_preamble() { let actual_code = generate_preamble(Path::new("some/path/foo.pdl")).unwrap(); let expected_code = include_str!("../test/generated/preamble.rs"); assert_eq_with_diff(&rustfmt(&actual_code), expected_code); assert_eq_with_diff(&rustfmt(&actual_code), &rustfmt(expected_code)); } #[test] Loading @@ -522,7 +522,7 @@ mod tests { let decl = &grammar.declarations[0]; let actual_code = generate_decl(&grammar, &packets, &children, decl).unwrap(); let expected_code = include_str!("../test/generated/packet_decl_empty.rs"); assert_eq_with_diff(&rustfmt(&actual_code), expected_code); assert_eq_with_diff(&rustfmt(&actual_code), &rustfmt(expected_code)); } #[test] Loading @@ -542,7 +542,7 @@ mod tests { let decl = &grammar.declarations[0]; let actual_code = generate_decl(&grammar, &packets, &children, decl).unwrap(); let expected_code = include_str!("../test/generated/packet_decl_simple_little_endian.rs"); assert_eq_with_diff(&rustfmt(&actual_code), expected_code); assert_eq_with_diff(&rustfmt(&actual_code), &rustfmt(expected_code)); } #[test] Loading @@ -562,6 +562,6 @@ mod tests { let decl = &grammar.declarations[0]; let actual_code = generate_decl(&grammar, &packets, &children, decl).unwrap(); let expected_code = include_str!("../test/generated/packet_decl_simple_big_endian.rs"); assert_eq_with_diff(&rustfmt(&actual_code), expected_code); assert_eq_with_diff(&rustfmt(&actual_code), &rustfmt(expected_code)); } }