Fix indent

This commit is contained in:
woppopo 2022-09-27 19:40:53 +00:00
parent 767a7771c7
commit ca55a88161

View file

@ -5,27 +5,27 @@ use core::panic::Location;
#[test] #[test]
fn location_const_caller() { fn location_const_caller() {
const _CALLER_REFERENCE: &Location<'static> = Location::caller(); const _CALLER_REFERENCE: &Location<'static> = Location::caller();
const _CALLER: Location<'static> = *Location::caller(); const _CALLER: Location<'static> = *Location::caller();
} }
#[test] #[test]
fn location_const_file() { fn location_const_file() {
const CALLER: &Location<'static> = Location::caller(); const CALLER: &Location<'static> = Location::caller();
const FILE: &str = CALLER.file(); const FILE: &str = CALLER.file();
assert_eq!(FILE, "library/core/tests/panic/location.rs"); assert_eq!(FILE, "library/core/tests/panic/location.rs");
} }
#[test] #[test]
fn location_const_line() { fn location_const_line() {
const CALLER: &Location<'static> = Location::caller(); const CALLER: &Location<'static> = Location::caller();
const LINE: u32 = CALLER.line(); const LINE: u32 = CALLER.line();
assert_eq!(LINE, 21); assert_eq!(LINE, 21);
} }
#[test] #[test]
fn location_const_column() { fn location_const_column() {
const CALLER: &Location<'static> = Location::caller(); const CALLER: &Location<'static> = Location::caller();
const COLUMN: u32 = CALLER.column(); const COLUMN: u32 = CALLER.column();
assert_eq!(COLUMN, 39); assert_eq!(COLUMN, 40);
} }