Skip to content

Commit df163bb

Browse files
committed
Made code more idiomatic (::core -> core and ::std -> std)
1 parent fa0fef3 commit df163bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/tests/num/int_sqrt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ macro_rules! signed_check {
202202
"`({negative_n}).checked_isqrt()` should be `None`, as {negative_n} is negative.",
203203
);
204204

205-
::std::panic::catch_unwind(::core::panic::AssertUnwindSafe(|| (-n).isqrt())).expect_err(
205+
std::panic::catch_unwind(core::panic::AssertUnwindSafe(|| (-n).isqrt())).expect_err(
206206
&format!("`({negative_n}).isqrt()` should have panicked, as {negative_n} is negative.")
207207
);
208208
}
@@ -222,7 +222,7 @@ macro_rules! unsigned_check {
222222
if n > 0 {
223223
assert_eq!(
224224
n.isqrt(),
225-
::core::num::NonZero::<$T>::new(n)
225+
core::num::NonZero::<$T>::new(n)
226226
.expect(
227227
"Was not able to create a new `NonZero` value from a nonzero number."
228228
)

0 commit comments

Comments
 (0)