We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d7913f commit a7fef3cCopy full SHA for a7fef3c
1 file changed
src/subscribe/state.rs
@@ -3,9 +3,9 @@ use super::spider;
3
use super::utils;
4
use super::{Page, IFEXIT};
5
use crossterm::event::{self, Event, KeyCode};
6
+use serde_json::json;
7
use std::{env, io, process::Command};
8
use tui::widgets::ListState;
-use serde_json::json;
9
pub(super) async fn subscribe_state(app: &mut AppSub) -> io::Result<IFEXIT> {
10
if app.receiver.is_some() {
11
if let Ok(get_list) = app.receiver.as_mut().unwrap().try_recv() {
@@ -147,7 +147,8 @@ pub(super) async fn subscribe_state(app: &mut AppSub) -> io::Result<IFEXIT> {
147
utils::Save::V2ray,
148
json!({
149
"v2core" : app.settings_input[0]
150
- }).to_string()
+ })
151
+ .to_string(),
152
)
153
.unwrap_or_else(|err| panic!("{}", err));
154
let mut subscribe_json: String = "[\n\n".to_string();
0 commit comments