-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_result.log
More file actions
executable file
·1359 lines (1178 loc) · 49.9 KB
/
test_result.log
File metadata and controls
executable file
·1359 lines (1178 loc) · 49.9 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/jrad/RustroverProjects/edgeray-workspace/rustray/Cargo.toml
workspace: /home/jrad/RustroverProjects/edgeray-workspace/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/jrad/RustroverProjects/edgeray-workspace/rr-ui/Cargo.toml
workspace: /home/jrad/RustroverProjects/edgeray-workspace/Cargo.toml
warning: unused import: `std::fs::File`
--> rr-ui/src/ui/components/inbound_modal.rs:12:5
|
12 | use std::fs::File;
| ^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: unused imports: `BufRead`, `BufReader`, `SeekFrom`, and `Seek`
--> rr-ui/src/ui/components/inbound_modal.rs:13:15
|
13 | use std::io::{BufRead, BufReader, Read, Seek, SeekFrom};
| ^^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^^^^
warning: unused import: `crate::ui::components::forms::TextInput`
--> rr-ui/src/ui/components/log_viewer.rs:5:5
|
5 | use crate::ui::components::forms::TextInput;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `std::collections::VecDeque`
--> rr-ui/src/ui/components/log_viewer.rs:7:5
|
7 | use std::collections::VecDeque;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `std::collections::HashMap`
--> rr-ui/src/ui/components/plugin_slot.rs:8:5
|
8 | use std::collections::HashMap;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `crate::domain::plugin_api::PluginRegistryEntry`
--> rr-ui/src/ui/components/plugin_slot.rs:105:9
|
105 | use crate::domain::plugin_api::PluginRegistryEntry;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `ChoiceBoxOption`
--> rr-ui/src/ui/components/qr_code_modal.rs:5:36
|
5 | use crate::ui::components::forms::{ChoiceBoxOption, TextArea};
| ^^^^^^^^^^^^^^^
warning: unused import: `TextInput`
--> rr-ui/src/ui/components/subscription_generator.rs:5:46
|
5 | use crate::ui::components::forms::{TextArea, TextInput};
| ^^^^^^^^^
warning: unused import: `std::time::Duration`
--> rr-ui/src/ui/pages/connections.rs:7:5
|
7 | use std::time::Duration;
| ^^^^^^^^^^^^^^^^^^^
warning: unused imports: `ActiveConnection`, `MeshNodeStatus`, and `NodeHealth`
--> rr-ui/src/ui/pages/dashboard.rs:6:5
|
6 | ActiveConnection, DashboardStats, DiscoveryState, MeshNodeStatus, NodeHealth,
| ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^
warning: unused import: `crate::ui::components::card::Card`
--> rr-ui/src/ui/pages/dashboard.rs:8:5
|
8 | use crate::ui::components::card::Card;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `std::time::Duration`
--> rr-ui/src/ui/pages/dashboard.rs:15:5
|
15 | use std::time::Duration;
| ^^^^^^^^^^^^^^^^^^^
warning: unused import: `crate::ui::server_fns::ServerFnError`
--> rr-ui/src/ui/pages/inbounds.rs:7:5
|
7 | use crate::ui::server_fns::ServerFnError;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: unused imports: `ClientOperation` and `manage_client`
--> rr-ui/src/ui/pages/inbounds.rs:9:29
|
9 | use crate::ui::server_fns::{ClientOperation, list_inbounds, manage_client};
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
warning: unused import: `MeshNodeRole`
--> rr-ui/src/ui/pages/mesh.rs:4:31
|
4 | use crate::models::{MeshNode, MeshNodeRole, MeshNodeStatus};
| ^^^^^^^^^^^^
warning: unused import: `crate::db::DbClient`
--> rr-ui/src/ui/server_fns.rs:19:5
|
19 | use crate::db::DbClient;
| ^^^^^^^^^^^^^^^^^^^
warning: unused import: `Nonce`
--> rr-ui/src/api/signaling.rs:48:23
|
48 | ChaCha20Poly1305, Nonce
| ^^^^^
warning: unused import: `TcpStream`
--> rr-ui/src/services/active_probing.rs:9:29
|
9 | use tokio::net::{TcpSocket, TcpStream, UdpSocket};
| ^^^^^^^^^
warning: unused import: `ProbeProtocol`
--> rr-ui/src/services/auto_failover.rs:24:70
|
24 | use crate::services::active_probing::{ActiveProber, NodeHealthStats, ProbeProtocol, ProbeResult};
| ^^^^^^^^^^^^^
warning: unused import: `info`
--> rr-ui/src/services/log_watcher.rs:1:18
|
1 | use log::{error, info, warn};
| ^^^^
warning: unused import: `HashSet`
--> rr-ui/src/services/log_watcher.rs:3:33
|
3 | use std::collections::{HashMap, HashSet};
| ^^^^^^^
warning: unused imports: `AtomicBool` and `Ordering`
--> rr-ui/src/services/log_watcher.rs:7:25
|
7 | use std::sync::atomic::{AtomicBool, Ordering};
| ^^^^^^^^^^ ^^^^^^^^
warning: unused import: `NodeCapacity`
--> rr-ui/src/services/mesh_orchestrator.rs:6:55
|
6 | use crate::domain::models::{MeshNode, MeshNodeStatus, NodeCapacity, NodeHealth};
| ^^^^^^^^^^^^
warning: unused imports: `Deserialize` and `Serialize`
--> rr-ui/src/services/sidecar_manager.rs:7:13
|
7 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
warning: unused import: `UnixListener`
--> rr-ui/src/services/sidecar_manager.rs:12:18
|
12 | use tokio::net::{UnixListener, UnixStream};
| ^^^^^^^^^^^^
warning: unused import: `std::net::IpAddr`
--> rr-ui/src/adapters/nftables_manager.rs:12:5
|
12 | use std::net::IpAddr;
| ^^^^^^^^^^^^^^^^
warning: unused import: `std::os::unix::process::CommandExt`
--> rr-ui/src/adapters/rustray_core.rs:340:21
|
340 | use std::os::unix::process::CommandExt;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: use of deprecated struct `server_fn::error::NoCustomError`: Now server_fn can return any error type other than ServerFnError, so the WrappedServerError variant will be removed in 0.9.0
--> rr-ui/src/ui/server_fns.rs:436:47
|
436 | ServerFnError::<server_fn::error::NoCustomError>::ServerError(e.to_string())
| ^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated struct `server_fn::error::NoCustomError`: Now server_fn can return any error type other than ServerFnError, so the WrappedServerError variant will be removed in 0.9.0
--> rr-ui/src/ui/server_fns.rs:442:51
|
442 | ServerFnError::<server_fn::error::NoCustomError>::ServerError(e.to_string())
| ^^^^^^^^^^^^^
warning: use of deprecated struct `server_fn::error::NoCustomError`: Now server_fn can return any error type other than ServerFnError, so the WrappedServerError variant will be removed in 0.9.0
--> rr-ui/src/ui/server_fns.rs:463:47
|
463 | ServerFnError::<server_fn::error::NoCustomError>::ServerError(e.to_string())
| ^^^^^^^^^^^^^
warning: use of deprecated struct `server_fn::error::NoCustomError`: Now server_fn can return any error type other than ServerFnError, so the WrappedServerError variant will be removed in 0.9.0
--> rr-ui/src/ui/server_fns.rs:466:47
|
466 | ServerFnError::<server_fn::error::NoCustomError>::ServerError(e.to_string())
| ^^^^^^^^^^^^^
warning: unused import: `Read`
--> rr-ui/src/ui/components/inbound_modal.rs:13:35
|
13 | use std::io::{BufRead, BufReader, Read, Seek, SeekFrom};
| ^^^^
warning: unused import: `BufRead`
--> rr-ui/src/services/log_watcher.rs:5:15
|
5 | use std::io::{BufRead, BufReader, Read, Seek, SeekFrom};
| ^^^^^^^
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/add_client_modal.rs:19:9
|
19 | let mut email = use_signal(|| String::new());
| ----^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/add_client_modal.rs:21:9
|
21 | let mut total_gb = use_signal(|| 0i64);
| ----^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/add_client_modal.rs:22:9
|
22 | let mut expiry_time = use_signal(|| None::<i64>);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `operation`
--> rr-ui/src/ui/components/bulk_operations_modal.rs:67:17
|
67 | let operation = get_operation();
| ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_operation`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `inbound`
--> rr-ui/src/ui/components/client_details_modal.rs:42:40
|
42 | if let (Some(client), Some(inbound)) = (&props.client, &props.inbound) {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inbound`
warning: unused variable: `angle`
--> rr-ui/src/ui/components/cpu_gauge.rs:15:9
|
15 | let angle = (percentage / 100.0) * 270.0 - 135.0;
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_angle`
warning: unused variable: `evt`
--> rr-ui/src/ui/components/forms/date_picker.rs:148:41
|
148 | onchange: move |evt: Event<FormData>| {
| ^^^ help: if this is intentional, prefix it with an underscore: `_evt`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:36:9
|
36 | let mut remark = use_signal(|| String::new());
| ----^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:37:9
|
37 | let mut protocol = use_signal(|| None::<String>);
| ----^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:38:9
|
38 | let mut listen_ip = use_signal(|| String::from("0.0.0.0"));
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:39:9
|
39 | let mut port = use_signal(|| 8443i64);
| ----^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:49:9
|
49 | let mut client_uuid = use_signal(|| generate_uuid_v4());
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:50:9
|
50 | let mut client_password = use_signal(|| String::new());
| ----^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:52:9
|
52 | let mut reality_dest = use_signal(|| String::new());
| ----^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:53:9
|
53 | let mut reality_sni = use_signal(|| vec![String::from("example.com")]);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:54:9
|
54 | let mut reality_short_ids = use_signal(|| vec![String::new()]);
| ----^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:55:9
|
55 | let mut reality_private_key = use_signal(|| String::new());
| ----^^^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:56:9
|
56 | let mut reality_public_key = use_signal(|| String::new());
| ----^^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:57:9
|
57 | let mut reality_pqc = use_signal(|| None::<String>);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:58:9
|
58 | let mut stealth_handshake = use_signal(|| false);
| ----^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:61:9
|
61 | let mut ws_path = use_signal(|| String::from("/"));
| ----^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:62:9
|
62 | let mut ws_host = use_signal(|| String::new());
| ----^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:65:9
|
65 | let mut up_speed_limit = use_signal(|| 0i64);
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:66:9
|
66 | let mut down_speed_limit = use_signal(|| 0i64);
| ----^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:69:9
|
69 | let mut grpc_service_name = use_signal(|| String::new());
| ----^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:70:9
|
70 | let mut grpc_multi_mode = use_signal(|| false);
| ----^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:73:9
|
73 | let mut tcp_path = use_signal(|| String::new());
| ----^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:74:9
|
74 | let mut tcp_host = use_signal(|| String::new());
| ----^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:75:9
|
75 | let mut tcp_type = use_signal(|| None::<String>);
| ----^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:78:9
|
78 | let mut flow_type = use_signal(|| None::<String>);
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:79:9
|
79 | let mut ss_method = use_signal(|| None::<String>);
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:82:9
|
82 | let mut flow_j_padding = use_signal(|| 0i64);
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:83:9
|
83 | let mut flow_j_jitter = use_signal(|| 0i64);
| ----^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:85:9
|
85 | let mut flow_j_port_count = use_signal(|| 64i64);
| ----^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:86:9
|
86 | let mut flow_j_port_type = use_signal(|| Some("random_dynamic".to_string()));
| ----^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:87:9
|
87 | let mut flow_j_congestion = use_signal(|| Some("bbr".to_string()));
| ----^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:88:9
|
88 | let mut flow_j_rotation = use_signal(|| 60i64);
| ----^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:89:9
|
89 | let mut flow_j_multiport_enabled = use_signal(|| true);
| ----^^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:92:9
|
92 | let mut db_mimic_target = use_signal(|| Some("postgresql".to_string()));
| ----^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:93:9
|
93 | let mut db_mimic_name = use_signal(|| String::new());
| ----^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:94:9
|
94 | let mut db_mimic_user = use_signal(|| String::new());
| ----^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:95:9
|
95 | let mut db_mimic_payload = use_signal(|| String::new());
| ----^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:98:9
|
98 | let mut slip_domain = use_signal(|| String::new());
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:99:9
|
99 | let mut slip_record = use_signal(|| Some("txt".to_string()));
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/inbound_modal.rs:100:9
|
100 | let mut slip_frag = use_signal(|| 1280i64);
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `flow_options`
--> rr-ui/src/ui/components/inbound_modal.rs:174:9
|
174 | let flow_options = vec![
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_flow_options`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/log_viewer.rs:27:9
|
27 | let mut buffer_limit = use_signal(|| 10000usize);
| ----^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `buffer_limit`
--> rr-ui/src/ui/components/log_viewer.rs:27:9
|
27 | let mut buffer_limit = use_signal(|| 10000usize);
| ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer_limit`
warning: unused variable: `e`
--> rr-ui/src/ui/components/modal.rs:45:15
|
45 | move |e: MouseEvent| {
| ^ help: if this is intentional, prefix it with an underscore: `_e`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/plugin_slot.rs:55:9
|
55 | let mut has_error = use_signal(|| false);
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/subscription_generator.rs:11:9
|
11 | let mut nodes_input = use_signal(|| String::new());
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/theme_provider.rs:43:9
|
43 | let mut theme = use_signal(|| Theme::Dark);
| ----^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/tun_dashboard.rs:15:9
|
15 | let mut is_loading = use_signal(|| true);
| ----^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/tun_dashboard.rs:16:9
|
16 | let mut error_msg = use_signal(|| Option::<String>::None);
| ----^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/components/tun_dashboard.rs:17:9
|
17 | let mut success_msg = use_signal(|| Option::<String>::None);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/forms_demo.rs:12:9
|
12 | let mut text_value = use_signal(|| String::new());
| ----^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/forms_demo.rs:13:9
|
13 | let mut number_value = use_signal(|| 0i64);
| ----^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/forms_demo.rs:14:9
|
14 | let mut switch_value = use_signal(|| false);
| ----^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/forms_demo.rs:15:9
|
15 | let mut textarea_value = use_signal(|| String::new());
| ----^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/forms_demo.rs:16:9
|
16 | let mut multi_text_value = use_signal(|| vec![String::from("example.com")]);
| ----^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/forms_demo.rs:17:9
|
17 | let mut date_value = use_signal(|| None::<i64>);
| ----^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/forms_demo.rs:18:9
|
18 | let mut choice_value = use_signal(|| None::<String>);
| ----^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/inbounds.rs:33:9
|
33 | let mut selected_client = use_signal(|| None::<(String, Client)>); // (inbound_id, client)
| ----^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/inbounds.rs:34:9
|
34 | let mut selected_inbound_for_details = use_signal(|| None::<crate::models::Inbound<'static>>);
| ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `inbounds_resource`
--> rr-ui/src/ui/pages/inbounds.rs:15:9
|
15 | let inbounds_resource = use_resource(move || async move {
| ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inbounds_resource`
warning: unused variable: `selected_client`
--> rr-ui/src/ui/pages/inbounds.rs:33:9
|
33 | let mut selected_client = use_signal(|| None::<(String, Client)>); // (inbound_id, client)
| ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selected_client`
warning: unused variable: `selected_inbound_for_details`
--> rr-ui/src/ui/pages/inbounds.rs:34:9
|
34 | let mut selected_inbound_for_details = use_signal(|| None::<crate::models::Inbound<'static>>);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_selected_inbound_for_details`
warning: unused variable: `handle_refresh`
--> rr-ui/src/ui/pages/mesh.rs:30:9
|
30 | let handle_refresh = move |_: Event<MouseData>| {
| ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle_refresh`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/migration.rs:10:9
|
10 | let mut is_analyzing = use_signal(|| false);
| ----^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `is_analyzing`
--> rr-ui/src/ui/pages/migration.rs:10:9
|
10 | let mut is_analyzing = use_signal(|| false);
| ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_analyzing`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/settings.rs:16:9
|
16 | let mut session_timeout = use_signal(|| 30i64);
| ----^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/settings.rs:17:9
|
17 | let mut ssl_enabled = use_signal(|| false);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/settings.rs:18:9
|
18 | let mut auto_backup = use_signal(|| true);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/settings.rs:19:9
|
19 | let mut traffic_reset_day = use_signal(|| 1i64);
| ----^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `session_timeout`
--> rr-ui/src/ui/pages/settings.rs:16:9
|
16 | let mut session_timeout = use_signal(|| 30i64);
| ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session_timeout`
warning: unused variable: `traffic_reset_day`
--> rr-ui/src/ui/pages/settings.rs:19:9
|
19 | let mut traffic_reset_day = use_signal(|| 1i64);
| ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_traffic_reset_day`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/cf_scanner.rs:13:9
|
13 | let mut concurrency = use_signal(|| 50i64);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/cf_scanner.rs:14:9
|
14 | let mut timeout = use_signal(|| 1000i64);
| ----^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> rr-ui/src/ui/pages/cf_scanner.rs:15:9
|
15 | let mut cidrs = use_signal(|| "104.16.0.0/12\n172.64.0.0/13".to_string());
| ----^^^^^
| |
| help: remove this `mut`
warning: unused variable: `user_id`
--> rr-ui/src/services/delta_sync.rs:270:21
|
270 | user_id,
| ^^^^^^^ help: try ignoring the field: `user_id: _`
warning: unused variable: `flow`
--> rr-ui/src/services/subscription.rs:158:41
|
158 | ... if let Some(flow) = &inbound
| ^^^^ help: if this is intentional, prefix it with an underscore: `_flow`
warning: variable does not need to be mutable
--> rr-ui/src/services/telemetry.rs:183:21
|
183 | let mut client_opt = xray_client.lock().unwrap().clone();
| ----^^^^^^^^^^
| |
| help: remove this `mut`
warning: unused variable: `user`
--> rr-ui/src/adapters/singbox_core.rs:222:34
|
222 | async fn add_user(&mut self, user: UserConfig) -> Result<(), CoreError> {
| ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
warning: unused variable: `user_id`
--> rr-ui/src/adapters/singbox_core.rs:231:37
|
231 | async fn remove_user(&mut self, user_id: &str) -> Result<(), CoreError> {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id`
warning: unused variable: `user`
--> rr-ui/src/adapters/xray_core.rs:135:34
|
135 | async fn add_user(&mut self, user: UserConfig) -> Result<(), CoreError> {
| ^^^^ help: if this is intentional, prefix it with an underscore: `_user`
warning: unused variable: `user_id`
--> rr-ui/src/adapters/xray_core.rs:142:37
|
142 | async fn remove_user(&mut self, user_id: &str) -> Result<(), CoreError> {
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id`
warning: unused variable: `orchestrator`
--> rr-ui/src/lib.rs:246:13
|
246 | let orchestrator = app_state.orchestrator.clone();
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orchestrator`
warning: function `serialize_secret` is never used
--> rr-ui/src/domain/models.rs:51:4
|
51 | fn serialize_secret<S>(secret: &SecretString, serializer: S) -> Result<S::Ok, S::Error>
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: function `serialize_secret_option` is never used
--> rr-ui/src/domain/models.rs:59:4
|
59 | fn serialize_secret_option<S>(
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: method `clear` is never used
--> rr-ui/src/jobs/traffic.rs:50:8
|
33 | impl TrafficAccumulator {
| ----------------------- method in this implementation
...
50 | fn clear(&mut self) {
| ^^^^^
warning: trait `ProberExt` is never used
--> rr-ui/src/services/auto_failover.rs:659:7
|
659 | trait ProberExt {
| ^^^^^^^^^
warning: fields `user_id`, `expires_at`, and `last_check` are never read
--> rr-ui/src/services/live_quota.rs:46:5
|
45 | struct UserQuotaState {
| -------------- fields in this struct
46 | user_id: String,
| ^^^^^^^
...
49 | expires_at: i64,
| ^^^^^^^^^^
50 | last_check: i64,
| ^^^^^^^^^^
|
= note: `UserQuotaState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
warning: field `stripe_api_key` is never read
--> rr-ui/src/services/reseller_billing.rs:158:5
|
156 | pub struct BillingManager {
| -------------- field in this struct
157 | subscriptions: HashMap<String, ResellerSubscription>,
158 | stripe_api_key: String,
| ^^^^^^^^^^^^^^
warning: field `prediction_window_hours` is never read
--> rr-ui/src/services/route_optimizer.rs:82:5
|
79 | pub struct RouteOptimizer {
| -------------- field in this struct
...
82 | prediction_window_hours: u64,
| ^^^^^^^^^^^^^^^^^^^^^^^
warning: fields `resource_limits` and `start_time` are never read
--> rr-ui/src/services/sidecar_manager.rs:38:5
|
34 | struct PluginProcess {
| ------------- fields in this struct
...
38 | resource_limits: ResourceLimits,
| ^^^^^^^^^^^^^^^
39 | start_time: std::time::Instant,
| ^^^^^^^^^^
|
= note: `PluginProcess` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
warning: field `message_id` is never read
--> rr-ui/src/services/tgbot.rs:34:9
|
33 | struct Message {
| ------- field in this struct
34 | pub message_id: u64,
| ^^^^^^^^^^
|
= note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
warning: variants `StartupReceived`, `AuthChallengeSent`, `PasswordReceived`, `AuthOkSent`, and `ReadyForQuerySent` are never constructed
--> rr-ui/src/transport/db_mimic.rs:14:5
|
12 | enum PgState {
| ------- variants in this enum
13 | Initial,
14 | StartupReceived,
| ^^^^^^^^^^^^^^^
15 | AuthChallengeSent,
| ^^^^^^^^^^^^^^^^^
16 | PasswordReceived,
| ^^^^^^^^^^^^^^^^
17 | AuthOkSent,
| ^^^^^^^^^^
18 | ReadyForQuerySent,
| ^^^^^^^^^^^^^^^^^
|
= note: `PgState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
warning: field `write_buf` is never read
--> rr-ui/src/transport/db_mimic.rs:27:5
|
23 | pub struct DbMimicStream<S> {
| ------------- field in this struct
...
27 | write_buf: Vec<u8>,
| ^^^^^^^^^
warning: field `tun_interface` is never read
--> rr-ui/src/adapters/nftables_manager.rs:24:5
|
22 | pub struct NftablesManager {
| --------------- field in this struct
23 | /// TUN interface name
24 | tun_interface: String,
| ^^^^^^^^^^^^^
warning: field `apl` is never read
--> rr-ui/src/adapters/rustray_core.rs:107:5
|
103 | pub struct RustRayCore {
| ----------- field in this struct
...
107 | apl: AtomicConfigWriter,
| ^^^
warning: field `api_address` is never read
--> rr-ui/src/adapters/singbox_core.rs:17:5
|