102 lines
6.5 KiB
Plaintext
102 lines
6.5 KiB
Plaintext
|
|
cargo : Checking rolegram v0.1.0 (C:\Users\macro\D
|
||
|
|
ocuments\workspace\self\rolegram\src-tauri)
|
||
|
|
所在位置 行:1 字符: 66
|
||
|
|
+ ... ocuments\workspace\self\rolegram\src-tauri"; car
|
||
|
|
go check 2>&1 | Out-F ...
|
||
|
|
+ ~~~
|
||
|
|
~~~~~~~~~~~~~
|
||
|
|
+ CategoryInfo : NotSpecified: ( Chec
|
||
|
|
king ro...gram\src-tauri):String) [], RemoteExcep
|
||
|
|
tion
|
||
|
|
+ FullyQualifiedErrorId : NativeCommandError
|
||
|
|
|
||
|
|
warning: unused import: `std::time::Duration`
|
||
|
|
--> src\iroh\local_find.rs:1:5
|
||
|
|
|
|
||
|
|
1 | use std::time::Duration;
|
||
|
|
| ^^^^^^^^^^^^^^^^^^^
|
||
|
|
|
|
||
|
|
= note: `#[warn(unused_imports)]` (part of `#[warn(u
|
||
|
|
nused)]`) on by default
|
||
|
|
|
||
|
|
error[E0061]: this function takes 1 argument but 0 arg
|
||
|
|
uments were supplied
|
||
|
|
--> src\iroh\local_find.rs:16:26
|
||
|
|
|
|
||
|
|
16 | let secret_key = SecretKey::generate();
|
||
|
|
| ^^^^^^^^^^^^^^^^^^^-- a
|
||
|
|
rgument #1 of type `&mut _` is missing
|
||
|
|
|
|
||
|
|
note: associated function defined here
|
||
|
|
--> C:\Users\macro\.cargo\registry\src\rsproxy.cn-e
|
||
|
|
3de039b2554c837\iroh-base-0.97.0\src\key.rs:285:12
|
||
|
|
|
|
||
|
|
285 | pub fn generate<R: CryptoRng + ?Sized>(csprn
|
||
|
|
g: &mut R) -> Self {
|
||
|
|
| ^^^^^^^^
|
||
|
|
help: provide the argument
|
||
|
|
|
|
||
|
|
16 | let secret_key = SecretKey::generate(/*
|
||
|
|
csprng */);
|
||
|
|
| +++
|
||
|
|
+++++++++
|
||
|
|
|
||
|
|
error[E0061]: this function takes 1 argument but 0 arg
|
||
|
|
uments were supplied
|
||
|
|
--> src\iroh\local_find.rs:18:24
|
||
|
|
|
|
||
|
|
18 | let endpoint = Endpoint::builder()
|
||
|
|
| ^^^^^^^^^^^^^^^^^-- argum
|
||
|
|
ent #1 is missing
|
||
|
|
|
|
||
|
|
note: associated function defined here
|
||
|
|
--> C:\Users\macro\.cargo\registry\src\rsproxy.cn-e
|
||
|
|
3de039b2554c837\iroh-0.97.0\src\endpoint.rs:829:12
|
||
|
|
|
|
||
|
|
829 | pub fn builder(preset: impl Preset) -> Build
|
||
|
|
er {
|
||
|
|
| ^^^^^^^
|
||
|
|
help: provide the argument
|
||
|
|
|
|
||
|
|
18 | let endpoint = Endpoint::builder(/* pres
|
||
|
|
et */)
|
||
|
|
| +++++++
|
||
|
|
+++++
|
||
|
|
|
||
|
|
error[E0382]: borrow of moved value: `finder`
|
||
|
|
--> src\handlers\tauri_handlers.rs:49:78
|
||
|
|
|
|
||
|
|
47 | Ok(finder) => {
|
||
|
|
| ------ move occurs because `finder` ha
|
||
|
|
s type `LocalFinder`, which does not implement the `Co
|
||
|
|
py` trait
|
||
|
|
48 | *finder_opt = Some(finder);
|
||
|
|
| ------ value moved
|
||
|
|
here
|
||
|
|
49 | Ok(format!("Local finder initialized
|
||
|
|
successfully. Node ID: {}", finder.local_id()))
|
||
|
|
|
|
||
|
|
^^^^^^ value borrowed here
|
||
|
|
after move
|
||
|
|
|
|
||
|
|
note: if `LocalFinder` implemented `Clone`, you could
|
||
|
|
clone the value
|
||
|
|
--> src\iroh\local_find.rs:9:1
|
||
|
|
|
|
||
|
|
9 | pub struct LocalFinder {
|
||
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clo
|
||
|
|
ne` for this type
|
||
|
|
|
|
||
|
|
::: src\handlers\tauri_handlers.rs:48:32
|
||
|
|
|
|
||
|
|
48 | *finder_opt = Some(finder);
|
||
|
|
| ------ you could c
|
||
|
|
lone this value
|
||
|
|
|
||
|
|
Some errors have detailed explanations: E0061, E0382.
|
||
|
|
For more information about an error, try `rustc --expl
|
||
|
|
ain E0061`.
|
||
|
|
warning: `rolegram` (lib) generated 1 warning
|
||
|
|
error: could not compile `rolegram` (lib) due to 3 pre
|
||
|
|
vious errors; 1 warning emitted
|
||
|
|
�
|