File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change 66struct A ;
77
88impl A {
9- fn result_with_debug_assert_with_message ( x : i32 ) -> Result < bool , String >
10- {
9+ fn result_with_debug_assert_with_message ( x : i32 ) -> Result < bool , String > {
1110 debug_assert ! ( x == 5 , "wrong argument" ) ;
1211 Ok ( true )
1312 }
1413
15- fn result_with_debug_assert_eq ( x : i32 ) -> Result < bool , String >
16- {
14+ fn result_with_debug_assert_eq ( x : i32 ) -> Result < bool , String > {
1715 debug_assert_eq ! ( x, 5 ) ;
1816 Ok ( true )
1917 }
2018
21- fn result_with_debug_assert_ne ( x : i32 ) -> Result < bool , String >
22- {
19+ fn result_with_debug_assert_ne ( x : i32 ) -> Result < bool , String > {
2320 debug_assert_ne ! ( x, 1 ) ;
2421 Ok ( true )
2522 }
2623
27- fn other_with_debug_assert_with_message ( x : i32 )
28- {
24+ fn other_with_debug_assert_with_message ( x : i32 ) {
2925 debug_assert ! ( x == 5 , "wrong argument" ) ;
3026 }
3127
32- fn other_with_debug_assert_eq ( x : i32 )
33- {
28+ fn other_with_debug_assert_eq ( x : i32 ) {
3429 debug_assert_eq ! ( x, 5 ) ;
3530 }
3631
37- fn other_with_debug_assert_ne ( x : i32 )
38- {
32+ fn other_with_debug_assert_ne ( x : i32 ) {
3933 debug_assert_ne ! ( x, 1 ) ;
4034 }
4135
42- fn result_without_banned_functions ( ) -> Result < bool , String >
43- {
36+ fn result_without_banned_functions ( ) -> Result < bool , String > {
4437 let debug_assert = "debug_assert!" ;
4538 println ! ( "No {}" , debug_assert) ;
4639 Ok ( true )
You can’t perform that action at this time.
0 commit comments