File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ extern "C" {
160
160
/// All operators(traits) from std::ops module implemented for Array object
161
161
/// carry out element wise operations. For example, `*` does multiplication of
162
162
/// elements at corresponding locations in two different Arrays.
163
- pub struct Array < T : HasAfEnum > {
163
+ pub struct Array < T > {
164
164
handle : af_array ,
165
165
/// The phantom marker denotes the
166
166
/// allocation of data on compute device
@@ -701,10 +701,7 @@ where
701
701
}
702
702
703
703
/// To free resources when Array goes out of scope
704
- impl < T > Drop for Array < T >
705
- where
706
- T : HasAfEnum ,
707
- {
704
+ impl < T > Drop for Array < T > {
708
705
fn drop ( & mut self ) {
709
706
unsafe {
710
707
let ret_val = af_release_array ( self . handle ) ;
You can’t perform that action at this time.
0 commit comments