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"
|
||||
license = "(0BSD OR MIT)"
|
||||
edition = "2018"
|
||||
categories = ["command-line-interface"]
|
||||
#build = "build.rs"
|
||||
default-run = "new-role"
|
||||
|
||||
[profile.release]
|
||||
panic = "abort"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
fn main() {
|
||||
use crate::{
|
||||
use advotrackerdb::{
|
||||
functions::db_connection::establish_connection,
|
||||
models::harms::Harm,
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
fn main() {
|
||||
use diesel::RunQueryDsl;
|
||||
|
||||
use crate::{
|
||||
use advotrackerdb::{
|
||||
functions::db_connection::establish_connection,
|
||||
models::roles::Role,
|
||||
schema::roles::dsl::*,
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
|
||||
fn main() {
|
||||
|
||||
use crate::{
|
||||
use advotrackerdb::{
|
||||
functions::db_connection::establish_connection,
|
||||
models::users::User;
|
||||
models::users::User,
|
||||
};
|
||||
|
||||
let connection = establish_connection();
|
||||
|
||||
@@ -9,7 +9,7 @@ fn main() {
|
||||
use chrono::Local;
|
||||
use std::io::{stdin, Read};
|
||||
|
||||
use crate::{
|
||||
use advotrackerdb::{
|
||||
functions::db_connection::*,
|
||||
models::harms::Harm,
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
fn main() {
|
||||
use std::io::{stdin, Read};
|
||||
|
||||
use crate::{
|
||||
use advotrackerdb::{
|
||||
functions::db_connection::*,
|
||||
models::roles::Role,
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
fn main() {
|
||||
use std::io::{stdin, Read};
|
||||
|
||||
use crate::{
|
||||
use advotrackerdb::{
|
||||
functions::db_connection::*,
|
||||
models::users::User,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user