Fix a few warnings
This commit is contained in:
parent
80472506ca
commit
dd9e845e66
@ -11,12 +11,14 @@ impl Activity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct Create<'a, T, U> where T: Actor + 'static, U: Object {
|
pub struct Create<'a, T, U> where T: Actor + 'static, U: Object {
|
||||||
by: &'a T,
|
by: &'a T,
|
||||||
object: U
|
object: U
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, T: Actor, U: Object> Create<'a, T, U> {
|
impl<'a, T: Actor, U: Object> Create<'a, T, U> {
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn new(by: &T, obj: U) -> Create<T, U> {
|
pub fn new(by: &T, obj: U) -> Create<T, U> {
|
||||||
Create {
|
Create {
|
||||||
by: by,
|
by: by,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use base64;
|
use base64;
|
||||||
use hex;
|
use hex;
|
||||||
use chrono::Utc;
|
use chrono::Utc;
|
||||||
use openssl::sha::{sha256, sha512};
|
use openssl::sha::sha256;
|
||||||
use serde_json;
|
use serde_json;
|
||||||
|
|
||||||
// (Comments are from the Mastodon source code, to remember what to do.)
|
// (Comments are from the Mastodon source code, to remember what to do.)
|
||||||
|
@ -12,11 +12,8 @@ extern crate dotenv;
|
|||||||
extern crate openssl;
|
extern crate openssl;
|
||||||
extern crate rocket;
|
extern crate rocket;
|
||||||
extern crate rocket_contrib;
|
extern crate rocket_contrib;
|
||||||
#[feature(custom_attribute)]
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate serde_derive;
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
|
|
||||||
use diesel::pg::PgConnection;
|
use diesel::pg::PgConnection;
|
||||||
@ -32,9 +29,6 @@ mod schema;
|
|||||||
mod routes;
|
mod routes;
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
use db_conn::DbConn;
|
|
||||||
use models::instance::*;
|
|
||||||
|
|
||||||
type PgPool = Pool<ConnectionManager<PgConnection>>;
|
type PgPool = Pool<ConnectionManager<PgConnection>>;
|
||||||
|
|
||||||
/// Initializes a database pool.
|
/// Initializes a database pool.
|
||||||
|
@ -72,7 +72,7 @@ impl Blog {
|
|||||||
Outbox::new(self.compute_outbox(conn), self.get_activities(conn))
|
Outbox::new(self.compute_outbox(conn), self.get_activities(conn))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_activities(&self, conn: &PgConnection) -> Vec<Activity> {
|
fn get_activities(&self, _conn: &PgConnection) -> Vec<Activity> {
|
||||||
vec![]
|
vec![]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user