Remove unnecessary boilerplate code.

This commit is contained in:
Kavin 2023-03-04 04:22:36 +00:00
parent 35653a4832
commit be5ff40c97
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
1 changed files with 0 additions and 15 deletions

View File

@ -7,10 +7,6 @@ use lazy_static::lazy_static;
use reqwest::{Client, Method, Url};
use tokio::runtime::Runtime;
pub fn add(left: usize, right: usize) -> usize {
left + right
}
lazy_static! {
static ref RUNTIME: Runtime = Runtime::new().unwrap();
static ref CLIENT: Client = Client::builder()
@ -101,14 +97,3 @@ pub extern "system" fn Java_rocks_kavin_reqwest4j_ReqwestUtils_fetch(
response.into_raw()
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}