Skip to content

Commit

Permalink
fix some warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyoo committed Jun 28, 2024
1 parent 4616f61 commit 54f76b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ impl Response {

// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
#[command]
pub fn request(rid: &str, action: &str, connectionInfo: &str, data: &str) -> String {
format!("Hello, {}! You've been greeted from Rust!", action);
pub fn request(rid: &str, action: &str, connection_info: &str, data: &str) -> String {
println!("rid: {}\naction: {}\nconnection_info: {}\ndata: {}", rid,action,connection_info, data);

let resp = Response {};
resp.into_response()
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod api;
pub mod api;

pub fn run() {
tauri::Builder::default()
Expand Down
1 change: 0 additions & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

mod api;

fn main() {
bsrdc::run();
Expand Down

0 comments on commit 54f76b9

Please sign in to comment.