File tree 3 files changed +6
-10
lines changed
3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ impl RawFile {
97
97
let f = get_ffi_from_path ( path) ;
98
98
let mut ncid: nc_type = 0 ;
99
99
unsafe {
100
- error:: checked ( super :: with_lock ( || {
100
+ error:: checked ( with_lock ( || {
101
101
netcdf_sys:: par:: nc_open_par (
102
102
f. as_ptr ( ) . cast ( ) ,
103
103
options. bits ( ) ,
@@ -140,7 +140,7 @@ impl RawFile {
140
140
let f = get_ffi_from_path ( path) ;
141
141
let mut ncid: nc_type = -1 ;
142
142
unsafe {
143
- error:: checked ( super :: with_lock ( || {
143
+ error:: checked ( with_lock ( || {
144
144
netcdf_sys:: par:: nc_create_par (
145
145
f. as_ptr ( ) . cast ( ) ,
146
146
options. bits ( ) ,
@@ -500,16 +500,12 @@ impl FileMut {
500
500
501
501
/// Open the file for new definitions
502
502
pub fn redef ( & mut self ) -> error:: Result < ( ) > {
503
- error:: checked ( super :: with_lock ( || unsafe {
504
- netcdf_sys:: nc_redef ( self . ncid ( ) )
505
- } ) )
503
+ error:: checked ( with_lock ( || unsafe { netcdf_sys:: nc_redef ( self . ncid ( ) ) } ) )
506
504
}
507
505
508
506
/// Close the file for new definitions
509
507
pub fn enddef ( & mut self ) -> error:: Result < ( ) > {
510
- error:: checked ( super :: with_lock ( || unsafe {
511
- netcdf_sys:: nc_enddef ( self . ncid ( ) )
512
- } ) )
508
+ error:: checked ( with_lock ( || unsafe { netcdf_sys:: nc_enddef ( self . ncid ( ) ) } ) )
513
509
}
514
510
}
515
511
Original file line number Diff line number Diff line change 1
1
use crate :: {
2
2
error:: { checked, Result } ,
3
- with_lock,
3
+ utils :: with_lock,
4
4
} ;
5
5
6
6
use netcdf_sys:: nc_type;
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ impl<'g> Variable<'g> {
194
194
195
195
#[ cfg( feature = "mpi" ) ]
196
196
fn access_mode ( & self , mode : crate :: par:: AccessMode ) -> error:: Result < ( ) > {
197
- error:: checked ( super :: with_lock ( || unsafe {
197
+ error:: checked ( utils :: with_lock ( || unsafe {
198
198
netcdf_sys:: par:: nc_var_par_access (
199
199
self . ncid ,
200
200
self . varid ,
You can’t perform that action at this time.
0 commit comments