We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be6b433 commit e245283Copy full SHA for e245283
src/bt.rs
@@ -121,11 +121,8 @@ pub fn bt(
121
args.current_data(),
122
args.recv_data()
123
);
124
- if let Ok(mut new_server_url) = String::from_utf8(args.recv_data().to_vec()) {
+ if let Ok(new_server_url) = String::from_utf8(args.recv_data().to_vec()) {
125
log::info!("New server URL: {}", new_server_url);
126
- if !new_server_url.ends_with("/") {
127
- new_server_url.push('/');
128
- }
129
let mut setting = setting_.lock().unwrap();
130
if let Err(e) = setting.1.set_str("server_url", &new_server_url) {
131
log::error!("Failed to save server URL to NVS: {:?}", e);
0 commit comments