Rust Version, Linting & CI Fix

This commit is contained in:
Neshura 2023-09-07 20:33:47 +02:00
parent 6ab4ae7244
commit cf36c8205b
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
6 changed files with 7 additions and 11 deletions

View file

@ -30,7 +30,7 @@ build:
after_script:
- echo JOB_ID=$CI_JOB_ID >> job.env
- mkdir ./artifacts
- cp /builds/Neshura/chellaris-rust-api/target/release/chellaris-rust-api ./artifacts/
- cp /builds/neshura-websites/chellaris-rust-api/target/release/chellaris-rust-api ./artifacts/
artifacts:
paths:
- ./artifacts/

2
Cargo.lock generated
View file

@ -398,7 +398,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chellaris-rust-api"
version = "0.1.0"
version = "1.0.3"
dependencies = [
"actix-web",
"chrono",

View file

@ -1,6 +1,6 @@
[package]
name = "chellaris-rust-api"
version = "0.1.0"
version = "1.0.3"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -1,5 +1 @@
use std::error::Error;
use sqlx::{Postgres, postgres::PgConnectOptions, PgPool, Pool};
pub(crate) mod schemas;

View file

@ -5,7 +5,7 @@ extern crate dotenv;
use dotenv::dotenv;
use tokio::time::sleep;
use std::{env, error::Error, fs, net::Ipv4Addr, net::Ipv6Addr, thread, time::Duration, sync::{Mutex, Arc, atomic::{AtomicBool, Ordering}}};
use std::{env, fs, net::Ipv4Addr, net::Ipv6Addr, time::Duration, sync::{Arc, atomic::{AtomicBool, Ordering}}};
use chrono::Local;
@ -266,7 +266,7 @@ async fn main() -> Result<()> {
while is_alive.load(Ordering::Relaxed) {
let thread = tokio::spawn(async {
sleep(Duration::from_millis(100));
let _ = sleep(Duration::from_millis(100));
});
let _ = thread.await;

View file

@ -5,10 +5,10 @@ use actix_web::{
web::{self, Json},
HttpRequest, HttpResponse, Responder,
};
use sqlx::{Execute, QueryBuilder};
use sqlx::{QueryBuilder};
use crate::{
db::{self, schemas::EmpireEthic},
db::{self},
AppState,
};