Use PhantomData intead of two Options useless for Authorization

And remove some warnings about unused parameters
This commit is contained in:
Baptiste Gelez
2018-10-24 12:21:42 +01:00
parent 9784d754b2
commit 28fbf35779
2 changed files with 7 additions and 10 deletions
+4 -4
View File
@@ -31,11 +31,11 @@ pub struct NewApp {
impl Provider<Connection> for App {
type Data = AppEndpoint;
fn get(conn: &Connection, id: i32) -> Result<AppEndpoint, Error> {
fn get(_conn: &Connection, _id: i32) -> Result<AppEndpoint, Error> {
unimplemented!()
}
fn list(conn: &Connection, query: AppEndpoint) -> Vec<AppEndpoint> {
fn list(_conn: &Connection, _query: AppEndpoint) -> Vec<AppEndpoint> {
unimplemented!()
}
@@ -61,11 +61,11 @@ impl Provider<Connection> for App {
})
}
fn update(conn: &Connection, id: i32, new_data: AppEndpoint) -> Result<AppEndpoint, Error> {
fn update(_conn: &Connection, _id: i32, _new_data: AppEndpoint) -> Result<AppEndpoint, Error> {
unimplemented!()
}
fn delete(conn: &Connection, id: i32) {
fn delete(_conn: &Connection, _id: i32) {
unimplemented!()
}
}