Skip to content

Commit dfbaa68

Browse files
committed
Run cargo fmt
1 parent 7dffe2c commit dfbaa68

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/lib.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
#![cfg_attr(feature = "unstable", feature(core_intrinsics))]
1212
#![cfg_attr(feature = "unstable", feature(const_generics))]
1313
#![cfg_attr(feature = "unstable", allow(incomplete_features))]
14-
1514
#![warn(missing_docs)]
1615

1716
use access::{ReadOnly, ReadWrite, Readable, Writable, WriteOnly};
1817
#[cfg(feature = "unstable")]
1918
use core::intrinsics;
2019
use core::{
20+
fmt,
2121
marker::PhantomData,
2222
ops::Deref,
2323
ops::{DerefMut, Index, IndexMut},
2424
ptr,
25-
slice::SliceIndex, fmt,
25+
slice::SliceIndex,
2626
};
2727

2828
/// Allows creating read-only and write-only `Volatile` values.
@@ -448,13 +448,21 @@ where
448448
}
449449
}
450450

451-
impl<R, T, A> fmt::Debug for Volatile<R, A> where R: Deref<Target = T>, T:Copy + fmt::Debug, A: Readable {
451+
impl<R, T, A> fmt::Debug for Volatile<R, A>
452+
where
453+
R: Deref<Target = T>,
454+
T: Copy + fmt::Debug,
455+
A: Readable,
456+
{
452457
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
453458
f.debug_tuple("Volatile").field(&self.read()).finish()
454459
}
455460
}
456461

457-
impl<R> fmt::Debug for Volatile<R, WriteOnly> where R: Deref {
462+
impl<R> fmt::Debug for Volatile<R, WriteOnly>
463+
where
464+
R: Deref,
465+
{
458466
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
459467
f.debug_tuple("Volatile").field(&"[write-only]").finish()
460468
}

0 commit comments

Comments
 (0)