File tree 5 files changed +22
-7
lines changed
5 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ license = "Apache-2.0"
6
6
publish = false
7
7
edition = " 2021"
8
8
9
+ [lib ]
10
+ doctest = false
11
+ test = false
12
+
9
13
[dependencies ] # In alphabetical order
10
14
# Workspace dependencies
11
15
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- #[ cfg( test) ]
16
- mod mutex_test;
17
- #[ cfg( test) ]
18
- mod rwlock_test;
19
-
20
15
mod exit_guard;
21
16
mod mutex;
22
17
mod rwlock;
Original file line number Diff line number Diff line change
1
+ // Copyright 2020 Datafuse Labs.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ mod mutex;
16
+ mod rwlock;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn test_mutex() {
17
17
use std:: sync:: Arc ;
18
18
use std:: thread;
19
19
20
- use crate :: Mutex ;
20
+ use common_infallible :: Mutex ;
21
21
let a = 7u8 ;
22
22
let mutex = Arc :: new ( Mutex :: new ( a) ) ;
23
23
let mutex2 = mutex. clone ( ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ fn test_rwlock() {
17
17
use std:: sync:: Arc ;
18
18
use std:: thread;
19
19
20
- use crate :: RwLock ;
20
+ use common_infallible :: RwLock ;
21
21
22
22
let a = 7u8 ;
23
23
let rwlock = Arc :: new ( RwLock :: new ( a) ) ;
You can’t perform that action at this time.
0 commit comments