|
| 1 | +// Copyright 2017 astonbitecode |
| 2 | +// This file is part of rust-keylock password manager. |
| 3 | +// |
| 4 | +// rust-keylock is free software: you can redistribute it and/or modify |
| 5 | +// it under the terms of the GNU General Public License as published by |
| 6 | +// the Free Software Foundation, either version 3 of the License, or |
| 7 | +// (at your option) any later version. |
| 8 | +// |
| 9 | +// rust-keylock is distributed in the hope that it will be useful, |
| 10 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | +// GNU General Public License for more details. |
| 13 | +// |
| 14 | +// You should have received a copy of the GNU General Public License |
| 15 | +// along with rust-keylock. If not, see <http://www.gnu.org/licenses/>. |
| 16 | + |
1 | 17 | #[macro_use] |
2 | 18 | extern crate log; |
3 | 19 | #[macro_use] |
@@ -203,8 +219,7 @@ pub extern "C" fn execute(show_menu_cb: StringCallback, |
203 | 219 | edit_configuration_cb: StringListCallback, |
204 | 220 | log_cb: LogCallback, |
205 | 221 | cert_file_path_java_string: *const c_char) { |
206 | | - |
207 | | - let cert_file_path = to_rust_string(cert_file_path_java_string); |
| 222 | + let cert_file_path = to_rust_string(cert_file_path_java_string); |
208 | 223 | ::std::env::set_var("SSL_CERT_FILE", cert_file_path); |
209 | 224 | let (tx, rx): (Sender<UserSelection>, Receiver<UserSelection>) = mpsc::channel(); |
210 | 225 | // Release the lock before calling the execute. |
@@ -372,8 +387,8 @@ pub extern "C" fn user_option_selected(label: *const c_char, |
372 | 387 | }; |
373 | 388 |
|
374 | 389 | tx.send(UserSelection::UserOption(UserOption::from((to_rust_string(label), |
375 | | - to_rust_string(value), |
376 | | - to_rust_string(short_label))))) |
| 390 | + to_rust_string(value), |
| 391 | + to_rust_string(short_label))))) |
377 | 392 | .unwrap(); |
378 | 393 | debug!("user_option_selected sent UserSelection to the TX"); |
379 | 394 | } |
|
0 commit comments