File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ impl<T> Clone for Array<T>
522
522
where
523
523
T : HasAfEnum ,
524
524
{
525
- fn clone ( & self ) -> Self {
525
+ fn clone ( & self ) -> Self {
526
526
unsafe {
527
527
let mut temp: i64 = 0 ;
528
528
let ret_val = af_retain_array ( & mut temp as MutAfArray , self . handle as AfArray ) ;
Original file line number Diff line number Diff line change @@ -158,12 +158,12 @@ impl Features {
158
158
///
159
159
/// This object is basically a bunch of Arrays.
160
160
#[ allow( unused_mut) ]
161
- pub fn new ( n : u64 ) -> Features {
161
+ pub fn new ( n : u64 ) -> Self {
162
162
unsafe {
163
163
let mut temp: i64 = 0 ;
164
164
let err_val = af_create_features ( & mut temp as * mut c_longlong as MutFeat , n as DimT ) ;
165
165
HANDLE_ERROR ( AfError :: from ( err_val) ) ;
166
- Features { feat : temp }
166
+ Self { feat : temp }
167
167
}
168
168
}
169
169
@@ -197,15 +197,15 @@ impl Features {
197
197
}
198
198
199
199
impl Clone for Features {
200
- fn clone ( & self ) -> Features {
200
+ fn clone ( & self ) -> Self {
201
201
unsafe {
202
202
let mut temp: i64 = 0 ;
203
203
let ret_val = af_retain_features (
204
204
& mut temp as * mut c_longlong as MutFeat ,
205
205
self . feat as * const c_longlong as Feat ,
206
206
) ;
207
207
HANDLE_ERROR ( AfError :: from ( ret_val) ) ;
208
- Features { feat : temp }
208
+ Self { feat : temp }
209
209
}
210
210
}
211
211
}
You can’t perform that action at this time.
0 commit comments