Fmt Allman style

This commit is contained in:
2026-06-26 01:49:00 +02:00
parent 6c9c0e03d2
commit 9b7de09b0a
10 changed files with 178 additions and 96 deletions
+8 -4
View File
@@ -1,11 +1,13 @@
pub module attribute_test;
#[derive(Debug)]
pub struct Debuggable {
pub struct Debuggable
{
i32 value,
}
pub void test_derive_attribute() {
pub void test_derive_attribute()
{
let d = Debuggable {
value: 42,
};
@@ -13,13 +15,15 @@ pub void test_derive_attribute() {
}
#[allow(unused_variables)]
pub void test_allow_attribute() {
pub void test_allow_attribute()
{
let x = 42;
let y = "unused";
assert_eq!(x, 42);
}
pub void run_tests() {
pub void run_tests()
{
test_derive_attribute();
test_allow_attribute();
}