Skip to content

Commit 5b86e38

Browse files
committed
Put compiler attributes below rustdocs
It is conventional, at least within the `rust-bitcoin` organisation to put compiler attributes _below_ the associated rustdocs.
1 parent e8454cd commit 5b86e38

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

secp256k1-sys/src/macros.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,26 @@ macro_rules! impl_array_newtype {
2020
impl Copy for $thing {}
2121

2222
impl $thing {
23-
#[inline]
2423
/// Converts the object to a raw pointer for FFI interfacing
24+
#[inline]
2525
pub fn as_ptr(&self) -> *const $ty {
2626
let &$thing(ref dat) = self;
2727
dat.as_ptr()
2828
}
2929

30-
#[inline]
3130
/// Converts the object to a mutable raw pointer for FFI interfacing
31+
#[inline]
3232
pub fn as_mut_ptr(&mut self) -> *mut $ty {
3333
let &mut $thing(ref mut dat) = self;
3434
dat.as_mut_ptr()
3535
}
3636

37-
#[inline]
3837
/// Returns the length of the object as an array
38+
#[inline]
3939
pub fn len(&self) -> usize { $len }
4040

41-
#[inline]
4241
/// Returns whether the object as an array is empty
42+
#[inline]
4343
pub fn is_empty(&self) -> bool { false }
4444
}
4545

0 commit comments

Comments
 (0)