Skip to content

Commit a7fef3c

Browse files
author
cht
committed
cargo fmt
1 parent 9d7913f commit a7fef3c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/subscribe/state.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use super::spider;
33
use super::utils;
44
use super::{Page, IFEXIT};
55
use crossterm::event::{self, Event, KeyCode};
6+
use serde_json::json;
67
use std::{env, io, process::Command};
78
use tui::widgets::ListState;
8-
use serde_json::json;
99
pub(super) async fn subscribe_state(app: &mut AppSub) -> io::Result<IFEXIT> {
1010
if app.receiver.is_some() {
1111
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> {
147147
utils::Save::V2ray,
148148
json!({
149149
"v2core" : app.settings_input[0]
150-
}).to_string()
150+
})
151+
.to_string(),
151152
)
152153
.unwrap_or_else(|err| panic!("{}", err));
153154
let mut subscribe_json: String = "[\n\n".to_string();

0 commit comments

Comments
 (0)