Fix rustfmt
This commit is contained in:
parent
43e6c656ba
commit
8f4417faf2
@ -6,41 +6,34 @@
|
||||
struct A;
|
||||
|
||||
impl A {
|
||||
fn result_with_debug_assert_with_message(x: i32) -> Result<bool, String>
|
||||
{
|
||||
fn result_with_debug_assert_with_message(x: i32) -> Result<bool, String> {
|
||||
debug_assert!(x == 5, "wrong argument");
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
fn result_with_debug_assert_eq(x: i32) -> Result<bool, String>
|
||||
{
|
||||
fn result_with_debug_assert_eq(x: i32) -> Result<bool, String> {
|
||||
debug_assert_eq!(x, 5);
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
fn result_with_debug_assert_ne(x: i32) -> Result<bool, String>
|
||||
{
|
||||
fn result_with_debug_assert_ne(x: i32) -> Result<bool, String> {
|
||||
debug_assert_ne!(x, 1);
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
fn other_with_debug_assert_with_message(x: i32)
|
||||
{
|
||||
fn other_with_debug_assert_with_message(x: i32) {
|
||||
debug_assert!(x == 5, "wrong argument");
|
||||
}
|
||||
|
||||
fn other_with_debug_assert_eq(x: i32)
|
||||
{
|
||||
fn other_with_debug_assert_eq(x: i32) {
|
||||
debug_assert_eq!(x, 5);
|
||||
}
|
||||
|
||||
fn other_with_debug_assert_ne(x: i32)
|
||||
{
|
||||
fn other_with_debug_assert_ne(x: i32) {
|
||||
debug_assert_ne!(x, 1);
|
||||
}
|
||||
|
||||
fn result_without_banned_functions() -> Result<bool, String>
|
||||
{
|
||||
fn result_without_banned_functions() -> Result<bool, String> {
|
||||
let debug_assert = "debug_assert!";
|
||||
println!("No {}", debug_assert);
|
||||
Ok(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user