Closed GildedHonour closed 4 years ago
If I remove "edition=2018" and run "cargo fix --edition --allow-dirty", it'll throw 100 errors, for instance:
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:108:30
|
108 | .map_err(|e| anyhow!(e))?;
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:117:58
|
117 | self.data.write(offset, &data).await.map_err(|e| anyhow!(e))
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `ensure`
--> src/storage/mod.rs:135:9
|
135 | ensure!(
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:143:26
|
143 | .map_err(|e| anyhow!(e))
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:156:26
|
156 | .map_err(|e| anyhow!(e))
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:188:26
|
188 | .map_err(|e| anyhow!(e))?;
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `ensure`
--> src/storage/mod.rs:189:9
|
189 | ensure!(not_zeroes(&bytes), "No signature found");
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:206:26
|
206 | .map_err(|e| anyhow!(e))
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:266:26
|
266 | .map_err(|e| anyhow!(e))?;
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:281:26
|
281 | .map_err(|e| anyhow!(e))
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:292:26
|
292 | .map_err(|e| anyhow!(e))
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:329:26
|
329 | .map_err(|e| anyhow!(e))?;
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:340:26
|
340 | .map_err(|e| anyhow!(e))?;
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:348:55
|
348 | self.keypair.write(0, &buf).await.map_err(|e| anyhow!(e))
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the macro `anyhow`
--> src/storage/mod.rs:357:26
|
357 | .map_err(|e| anyhow!(e))
| ^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error[E0433]: failed to resolve: use of undeclared type or module `Blake2b`
--> src/crypto/hash.rs:29:26
|
29 | let mut hasher = Blake2b::new(32);
| ^^^^^^^ use of undeclared type or module `Blake2b`
error[E0433]: failed to resolve: use of undeclared type or module `Blake2b`
--> src/crypto/hash.rs:49:26
|
49 | let mut hasher = Blake2b::new(32);
| ^^^^^^^ use of undeclared type or module `Blake2b`
error[E0433]: failed to resolve: use of undeclared type or module `Blake2b`
--> src/crypto/hash.rs:63:26
|
63 | let mut hasher = Blake2b::with_key(32, public_key.as_bytes());
| ^^^^^^^ use of undeclared type or module `Blake2b`
cargo test --benches
- same 100 errors
And
But in the toml file there's already
edition = "2018"
why is it being ignored?