|
| 1 | + Checking health-bridge v0.1.0 (/Users/justin/Projects/hb) |
| 2 | +error[E0063]: missing field `consultation_preference` in initializer of `NewUser<'_>` |
| 3 | + --> src/bin/seed.rs:60:24 |
| 4 | + | |
| 5 | +60 | let patient_user = NewUser { |
| 6 | + | ^^^^^^^ missing `consultation_preference` |
| 7 | + |
| 8 | +error[E0063]: missing field `consultation_preference` in initializer of `NewUser<'_>` |
| 9 | + --> src/bin/seed.rs:107:22 |
| 10 | + | |
| 11 | +107 | let donor_user = NewUser { |
| 12 | + | ^^^^^^^ missing `consultation_preference` |
| 13 | + |
| 14 | +error[E0063]: missing field `consultation_preference` in initializer of `NewUser<'_>` |
| 15 | + --> src/bin/seed.rs:154:25 |
| 16 | + | |
| 17 | +154 | let hospital_user = NewUser { |
| 18 | + | ^^^^^^^ missing `consultation_preference` |
| 19 | + |
| 20 | +error[E0063]: missing field `consultation_preference` in initializer of `NewUser<'_>` |
| 21 | + --> src/bin/seed.rs:183:22 |
| 22 | + | |
| 23 | +183 | let admin_user = NewUser { |
| 24 | + | ^^^^^^^ missing `consultation_preference` |
| 25 | + |
| 26 | +error[E0063]: missing field `consultation_preference` in initializer of `NewUser<'_>` |
| 27 | + --> src/bin/seed.rs:212:27 |
| 28 | + | |
| 29 | +212 | let specialist_user = NewUser { |
| 30 | + | ^^^^^^^ missing `consultation_preference` |
| 31 | + |
| 32 | +For more information about this error, try `rustc --explain E0063`. |
| 33 | +error: could not compile `health-bridge` (bin "seed") due to 5 previous errors |
| 34 | +warning: build failed, waiting for other jobs to finish... |
| 35 | +warning: unused import: `tracing::info` |
| 36 | + --> src/handlers/specialists.rs:6:5 |
| 37 | + | |
| 38 | +6 | use tracing::info; |
| 39 | + | ^^^^^^^^^^^^^ |
| 40 | + | |
| 41 | + = note: `#[warn(unused_imports)]` on by default |
| 42 | + |
| 43 | +warning: unused import: `crate::schema::specialists` |
| 44 | + --> src/handlers/specialists.rs:11:5 |
| 45 | + | |
| 46 | +11 | use crate::schema::specialists; |
| 47 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 48 | + |
| 49 | +warning: unused import: `tracing::info` |
| 50 | + --> src/handlers/patients.rs:5:5 |
| 51 | + | |
| 52 | +5 | use tracing::info; |
| 53 | + | ^^^^^^^^^^^^^ |
| 54 | + |
| 55 | +warning: unused import: `AppointmentStatusEnum` |
| 56 | + --> src/hospitals/service.rs:629:31 |
| 57 | + | |
| 58 | +629 | use crate::utils::enums::{AppointmentStatusEnum, RequestStatusTypeEnum}; |
| 59 | + | ^^^^^^^^^^^^^^^^^^^^^ |
| 60 | + |
| 61 | +warning: unused imports: `error` and `info` |
| 62 | + --> src/hospitals/appointments.rs:4:15 |
| 63 | + | |
| 64 | +4 | use tracing::{error, info}; |
| 65 | + | ^^^^^ ^^^^ |
| 66 | + |
| 67 | +warning: unused imports: `error` and `info` |
| 68 | + --> src/hospitals/blood_requests.rs:6:15 |
| 69 | + | |
| 70 | +6 | use tracing::{error, info}; |
| 71 | + | ^^^^^ ^^^^ |
| 72 | + |
| 73 | +warning: unused imports: `State` and `StatusCode` |
| 74 | + --> src/middleware/auth.rs:2:35 |
| 75 | + | |
| 76 | +2 | Extension, extract::{Request, State}, http::{StatusCode, header}, middleware::Next, response::Response |
| 77 | + | ^^^^^ ^^^^^^^^^^ |
| 78 | + |
| 79 | +warning: unused import: `info` |
| 80 | + --> src/middleware/auth.rs:8:15 |
| 81 | + | |
| 82 | +8 | use tracing::{info}; |
| 83 | + | ^^^^ |
| 84 | + |
| 85 | +warning: unused import: `get` |
| 86 | + --> src/routes/auth.rs:7:15 |
| 87 | + | |
| 88 | +7 | routing::{get, post}, |
| 89 | + | ^^^ |
| 90 | + |
| 91 | +warning: unused import: `delete` |
| 92 | + --> src/routes/appointments.rs:1:41 |
| 93 | + | |
| 94 | +1 | use axum::{Router, routing::{get, post, delete, put}}; |
| 95 | + | ^^^^^^ |
| 96 | + |
| 97 | +warning: unused import: `delete` |
| 98 | + --> src/routes/admin.rs:4:15 |
| 99 | + | |
| 100 | +4 | routing::{delete, get, patch}, |
| 101 | + | ^^^^^^ |
| 102 | + |
| 103 | +warning: unused import: `tracing::info` |
| 104 | + --> src/specialists/service.rs:5:5 |
| 105 | + | |
| 106 | +5 | use tracing::info; |
| 107 | + | ^^^^^^^^^^^^^ |
| 108 | + |
| 109 | +warning: unused import: `crate::services::mail::MailService` |
| 110 | + --> src/specialists/service.rs:11:5 |
| 111 | + | |
| 112 | +11 | use crate::services::mail::MailService; |
| 113 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 114 | + |
| 115 | +error[E0063]: missing field `consultation_preference` in initializer of `NewUser<'_>` |
| 116 | + --> src/auth/service.rs:71:20 |
| 117 | + | |
| 118 | +71 | let new_user = NewUser { |
| 119 | + | ^^^^^^^ missing `consultation_preference` |
| 120 | + |
| 121 | +error[E0063]: missing field `consultation_preference` in initializer of `NewUser<'_>` |
| 122 | + --> src/auth/socials.rs:43:28 |
| 123 | + | |
| 124 | +43 | let new_user = NewUser { |
| 125 | + | ^^^^^^^ missing `consultation_preference` |
| 126 | + |
| 127 | +warning: unused import: `diesel::prelude` |
| 128 | + --> src/handlers/specialists.rs:4:5 |
| 129 | + | |
| 130 | +4 | use diesel::prelude::*; |
| 131 | + | ^^^^^^^^^^^^^^^ |
| 132 | + |
| 133 | +warning: unused import: `diesel::associations::HasTable` |
| 134 | + --> src/hospitals/blood_requests.rs:3:5 |
| 135 | + | |
| 136 | +3 | use diesel::associations::HasTable; |
| 137 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 138 | + |
| 139 | +warning: unused variable: `token` |
| 140 | + --> src/auth/service.rs:223:5 |
| 141 | + | |
| 142 | +223 | token: &str, |
| 143 | + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` |
| 144 | + | |
| 145 | + = note: `#[warn(unused_variables)]` on by default |
| 146 | + |
| 147 | +warning: unused variable: `token` |
| 148 | + --> src/auth/service.rs:239:5 |
| 149 | + | |
| 150 | +239 | token: &str, |
| 151 | + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` |
| 152 | + |
| 153 | +warning: unused variable: `update_query` |
| 154 | + --> src/hospitals/service.rs:385:13 |
| 155 | + | |
| 156 | +385 | let mut update_query = diesel::update( |
| 157 | + | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_update_query` |
| 158 | + |
| 159 | +warning: variable does not need to be mutable |
| 160 | + --> src/hospitals/service.rs:385:9 |
| 161 | + | |
| 162 | +385 | let mut update_query = diesel::update( |
| 163 | + | ----^^^^^^^^^^^^ |
| 164 | + | | |
| 165 | + | help: remove this `mut` |
| 166 | + | |
| 167 | + = note: `#[warn(unused_mut)]` on by default |
| 168 | + |
| 169 | +warning: unused variable: `hospital_id` |
| 170 | + --> src/hospitals/appointments.rs:290:5 |
| 171 | + | |
| 172 | +290 | hospital_id: Uuid, |
| 173 | + | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hospital_id` |
| 174 | + |
| 175 | +warning: unused variable: `user_id` |
| 176 | + --> src/specialists/service.rs:368:5 |
| 177 | + | |
| 178 | +368 | user_id: Uuid, |
| 179 | + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_id` |
| 180 | + |
| 181 | +warning: unused variable: `user` |
| 182 | + --> src/specialists/service.rs:369:5 |
| 183 | + | |
| 184 | +369 | user: &User, |
| 185 | + | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` |
| 186 | + |
| 187 | +warning: `health-bridge` (bin "health-bridge") generated 22 warnings |
| 188 | +error: could not compile `health-bridge` (bin "health-bridge") due to 2 previous errors; 22 warnings emitted |
0 commit comments