-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheck_errors_4.txt
More file actions
187 lines (167 loc) · 8.21 KB
/
Copy pathcheck_errors_4.txt
File metadata and controls
187 lines (167 loc) · 8.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: D:\ZKS Protocol_Research\ZKS Protocol\crates\zks_wasm\Cargo.toml
workspace: D:\ZKS Protocol_Research\ZKS Protocol\Cargo.toml
Checking zks_wire v0.1.0 (D:\ZKS Protocol_Research\ZKS Protocol\crates\zks_wire)
warning: unused import: `debug`
--> crates\zks_wire\src\faisal_swarm\onion_stream.rs:13:15
|
13 | use tracing::{debug, error};
| ^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused import: `std::collections::HashMap`
--> crates\zks_wire\src\swarm_controller.rs:6:5
|
6 | use std::collections::HashMap;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `warn`
--> crates\zks_wire\src\swarm_controller.rs:9:35
|
9 | use tracing::{debug, error, info, warn};
| ^^^^
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:417:17
|
417 | let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:433:17
|
433 | let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:518:33
|
518 | ... let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:576:25
|
576 | let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:639:21
|
639 | let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\entropy_swarm.rs:857:37
|
857 | ... let mut transport_lock = transport.write().await;
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
error[E0308]: mismatched types
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:379:52
|
379 | circuit.encryption = Some(Arc::new(std::sync::Mutex::new(encryption)));
| -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Mutex<FaisalSwarmEncryption>`, found `std::sync::Mutex<FaisalSwarmEncryption>`
| |
| arguments to this function are incorrect
|
= note: `std::sync::Mutex<FaisalSwarmEncryption>` and `Mutex<FaisalSwarmEncryption>` have similar names, but are actually distinct types
note: `std::sync::Mutex<FaisalSwarmEncryption>` is defined in crate `std`
--> /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c\library\std\src\sync\poison\mutex.rs:227:1
note: `Mutex<FaisalSwarmEncryption>` is defined in crate `tokio`
--> C:\Users\Administrator\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.48.0\src\sync\mutex.rs:133:1
|
133 | pub struct Mutex<T: ?Sized> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: associated function defined here
--> /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c\library\alloc\src\sync.rs:419:12
error[E0308]: mismatched types
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:415:52
|
415 | circuit.encryption = Some(Arc::new(std::sync::Mutex::new(encryption)));
| -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Mutex<FaisalSwarmEncryption>`, found `std::sync::Mutex<FaisalSwarmEncryption>`
| |
| arguments to this function are incorrect
|
= note: `std::sync::Mutex<FaisalSwarmEncryption>` and `Mutex<FaisalSwarmEncryption>` have similar names, but are actually distinct types
note: `std::sync::Mutex<FaisalSwarmEncryption>` is defined in crate `std`
--> /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c\library\std\src\sync\poison\mutex.rs:227:1
note: `Mutex<FaisalSwarmEncryption>` is defined in crate `tokio`
--> C:\Users\Administrator\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\tokio-1.48.0\src\sync\mutex.rs:133:1
|
133 | pub struct Mutex<T: ?Sized> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: associated function defined here
--> /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c\library\alloc\src\sync.rs:419:12
error[E0599]: no method named `map_err` found for opaque type `impl futures_util::Future<Output = tokio::sync::MutexGuard<'_, FaisalSwarmEncryption>>` in the current scope
--> crates\zks_wire\src\faisal_swarm\circuit_manager.rs:670:14
|
668 | let mut encryption = encryption_mutex
| ______________________________-
669 | | .lock()
670 | | .map_err(|_| SwarmError::Encryption("Failed to lock encryption manager".into()))?;
| | -^^^^^^^ method not found in `impl futures_util::Future<Output = tokio::sync::MutexGuard<'_, FaisalSwarmEncryption>>`
| |_____________|
|
warning: variable does not need to be mutable
--> crates\zks_wire\src\faisal_swarm\relay.rs:397:17
|
397 | let mut transport = transport_arc.write().await;
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\faisal_swarm\relay.rs:452:17
|
452 | let mut transport: tokio::sync::RwLockWriteGuard<NativeP2PTransport> =
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\faisal_swarm\relay.rs:474:17
|
474 | let mut transport = transport_arc.write().await;
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> crates\zks_wire\src\swarm_controller.rs:97:14
|
97 | let (mut p2p_transport, mut driver) = NativeP2PTransport::new(None, None).map_err(|e| {
| ----^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `from_peer`
--> crates\zks_wire\src\faisal_swarm\relay.rs:145:9
|
145 | from_peer: PeerId,
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_from_peer`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> crates\zks_wire\src\faisal_swarm\mod.rs:259:13
|
259 | let mut cipher = self.backward_cipher.write().map_err(|e| {
| ----^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `faisal_request_timeout`
--> crates\zks_wire\src\p2p.rs:417:9
|
417 | faisal_request_timeout: Option<Duration>,
| ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_faisal_request_timeout`
warning: unused variable: `request_id`
--> crates\zks_wire\src\p2p.rs:770:21
|
770 | request_id,
| ^^^^^^^^^^ help: try ignoring the field: `request_id: _`
Some errors have detailed explanations: E0308, E0599.
For more information about an error, try `rustc --explain E0308`.
warning: `zks_wire` (lib) generated 17 warnings
error: could not compile `zks_wire` (lib) due to 3 previous errors; 17 warnings emitted