@@ -187,47 +187,47 @@ impl<'h> Pkg<'h> {
187
187
188
188
pub fn licenses ( & self ) -> AlpmList < ' h , & ' h str > {
189
189
let list = unsafe { alpm_pkg_get_licenses ( self . as_ptr ( ) ) } ;
190
- AlpmList :: from_parts ( self . handle , list)
190
+ unsafe { AlpmList :: from_parts ( self . handle , list) }
191
191
}
192
192
193
193
pub fn groups ( & self ) -> AlpmList < ' h , & ' h str > {
194
194
let list = unsafe { alpm_pkg_get_groups ( self . as_ptr ( ) ) } ;
195
- AlpmList :: from_parts ( self . handle , list)
195
+ unsafe { AlpmList :: from_parts ( self . handle , list) }
196
196
}
197
197
198
198
pub fn depends ( & self ) -> AlpmList < ' h , Dep < ' h > > {
199
199
let list = unsafe { alpm_pkg_get_depends ( self . as_ptr ( ) ) } ;
200
- AlpmList :: from_parts ( self . handle , list)
200
+ unsafe { AlpmList :: from_parts ( self . handle , list) }
201
201
}
202
202
203
203
pub fn optdepends ( & self ) -> AlpmList < ' h , Dep < ' h > > {
204
204
let list = unsafe { alpm_pkg_get_optdepends ( self . as_ptr ( ) ) } ;
205
- AlpmList :: from_parts ( self . handle , list)
205
+ unsafe { AlpmList :: from_parts ( self . handle , list) }
206
206
}
207
207
208
208
pub fn checkdepends ( & self ) -> AlpmList < ' h , Dep < ' h > > {
209
209
let list = unsafe { alpm_pkg_get_checkdepends ( self . as_ptr ( ) ) } ;
210
- AlpmList :: from_parts ( self . handle , list)
210
+ unsafe { AlpmList :: from_parts ( self . handle , list) }
211
211
}
212
212
213
213
pub fn makedepends ( & self ) -> AlpmList < ' h , Dep < ' h > > {
214
214
let list = unsafe { alpm_pkg_get_makedepends ( self . as_ptr ( ) ) } ;
215
- AlpmList :: from_parts ( self . handle , list)
215
+ unsafe { AlpmList :: from_parts ( self . handle , list) }
216
216
}
217
217
218
218
pub fn conflicts ( & self ) -> AlpmList < ' h , Dep < ' h > > {
219
219
let list = unsafe { alpm_pkg_get_conflicts ( self . as_ptr ( ) ) } ;
220
- AlpmList :: from_parts ( self . handle , list)
220
+ unsafe { AlpmList :: from_parts ( self . handle , list) }
221
221
}
222
222
223
223
pub fn provides ( & self ) -> AlpmList < ' h , Dep < ' h > > {
224
224
let list = unsafe { alpm_pkg_get_provides ( self . as_ptr ( ) ) } ;
225
- AlpmList :: from_parts ( self . handle , list)
225
+ unsafe { AlpmList :: from_parts ( self . handle , list) }
226
226
}
227
227
228
228
pub fn replaces ( & self ) -> AlpmList < ' h , Dep < ' h > > {
229
229
let list = unsafe { alpm_pkg_get_replaces ( self . as_ptr ( ) ) } ;
230
- AlpmList :: from_parts ( self . handle , list)
230
+ unsafe { AlpmList :: from_parts ( self . handle , list) }
231
231
}
232
232
233
233
pub fn files ( & self ) -> FileList {
@@ -237,7 +237,7 @@ impl<'h> Pkg<'h> {
237
237
238
238
pub fn backup ( & self ) -> AlpmList < ' h , Backup > {
239
239
let list = unsafe { alpm_pkg_get_backup ( self . as_ptr ( ) ) } ;
240
- AlpmList :: from_parts ( self . handle , list)
240
+ unsafe { AlpmList :: from_parts ( self . handle , list) }
241
241
}
242
242
243
243
pub fn db ( & self ) -> Option < Db < ' h > > {
@@ -265,12 +265,12 @@ impl<'h> Pkg<'h> {
265
265
266
266
pub fn required_by ( & self ) -> AlpmListMut < ' h , String > {
267
267
let list = unsafe { alpm_pkg_compute_requiredby ( self . as_ptr ( ) ) } ;
268
- AlpmListMut :: from_parts ( self . handle , list)
268
+ unsafe { AlpmListMut :: from_parts ( self . handle , list) }
269
269
}
270
270
271
271
pub fn optional_for ( & self ) -> AlpmListMut < ' h , String > {
272
272
let list = unsafe { alpm_pkg_compute_optionalfor ( self . as_ptr ( ) ) } ;
273
- AlpmListMut :: from_parts ( self . handle , list)
273
+ unsafe { AlpmListMut :: from_parts ( self . handle , list) }
274
274
}
275
275
276
276
pub fn base64_sig ( & self ) -> Option < & ' h str > {
0 commit comments