Fmt Allman style
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user