Skip to content

Commit ba8f079

Browse files
committed
use self
1 parent 266a976 commit ba8f079

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ where
155155
impl<'object> Indexer<'object> {
156156
#[allow(unused_mut)]
157157
/// Create a new Indexer object and set the dimension specific index objects later
158-
pub fn new() -> Indexer<'object> {
158+
pub fn new() -> Self {
159159
let mut temp: i64 = 0;
160160
unsafe {
161161
let err_val = af_create_indexers(&mut temp as MutAfIndex);
162162
HANDLE_ERROR(AfError::from(err_val));
163163
}
164-
Indexer {
164+
Self {
165165
handle: temp,
166166
count: 0,
167167
marker: PhantomData,
@@ -596,7 +596,7 @@ impl SeqInternal {
596596
where
597597
c_double: From<T>,
598598
{
599-
SeqInternal {
599+
Self {
600600
begin: From::from(s.begin()),
601601
end: From::from(s.end()),
602602
step: From::from(s.step()),

0 commit comments

Comments
 (0)