advotrackerdb: update use reference after structure update
* binaries: reference advotrackerdb, not crate Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -8,7 +8,9 @@ homepage = "https://gitea.networkx.de:50443/rzerres/advotrackerdb"
|
|||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = "(0BSD OR MIT)"
|
license = "(0BSD OR MIT)"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
categories = ["command-line-interface"]
|
||||||
#build = "build.rs"
|
#build = "build.rs"
|
||||||
|
default-run = "new-role"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
use crate::{
|
use advotrackerdb::{
|
||||||
functions::db_connection::establish_connection,
|
functions::db_connection::establish_connection,
|
||||||
models::harms::Harm,
|
models::harms::Harm,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
use diesel::RunQueryDsl;
|
use diesel::RunQueryDsl;
|
||||||
|
|
||||||
use crate::{
|
use advotrackerdb::{
|
||||||
functions::db_connection::establish_connection,
|
functions::db_connection::establish_connection,
|
||||||
models::roles::Role,
|
models::roles::Role,
|
||||||
schema::roles::dsl::*,
|
schema::roles::dsl::*,
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
use crate::{
|
use advotrackerdb::{
|
||||||
functions::db_connection::establish_connection,
|
functions::db_connection::establish_connection,
|
||||||
models::users::User;
|
models::users::User,
|
||||||
};
|
};
|
||||||
|
|
||||||
let connection = establish_connection();
|
let connection = establish_connection();
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ fn main() {
|
|||||||
use chrono::Local;
|
use chrono::Local;
|
||||||
use std::io::{stdin, Read};
|
use std::io::{stdin, Read};
|
||||||
|
|
||||||
use crate::{
|
use advotrackerdb::{
|
||||||
functions::db_connection::*,
|
functions::db_connection::*,
|
||||||
models::harms::Harm,
|
models::harms::Harm,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
use std::io::{stdin, Read};
|
use std::io::{stdin, Read};
|
||||||
|
|
||||||
use crate::{
|
use advotrackerdb::{
|
||||||
functions::db_connection::*,
|
functions::db_connection::*,
|
||||||
models::roles::Role,
|
models::roles::Role,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
use std::io::{stdin, Read};
|
use std::io::{stdin, Read};
|
||||||
|
|
||||||
use crate::{
|
use advotrackerdb::{
|
||||||
functions::db_connection::*,
|
functions::db_connection::*,
|
||||||
models::users::User,
|
models::users::User,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user