summaryrefslogtreecommitdiffstats
path: root/server/src/apub.rs
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-06-03 10:47:12 -0700
committerDessalines <happydooby@gmail.com>2019-06-03 10:47:12 -0700
commit42fc888279f708ff56630994470e1a854af72b2f (patch)
treece2c65657b1118eb4348aea0c8b6d7bc3b7386db /server/src/apub.rs
parentec81a0e61498b7481cff3315ed632eb7bd30dddd (diff)
Using Rust 2018 now.
- Fixes #170
Diffstat (limited to 'server/src/apub.rs')
-rw-r--r--server/src/apub.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/apub.rs b/server/src/apub.rs
index 3d9595c8..23735e63 100644
--- a/server/src/apub.rs
+++ b/server/src/apub.rs
@@ -1,10 +1,10 @@
extern crate activitypub;
use self::activitypub::{context, actor::Person};
-use db::user::User_;
+use crate::db::user::User_;
impl User_ {
pub fn person(&self) -> Person {
- use {Settings, to_datetime_utc};
+ use crate::{Settings, to_datetime_utc};
let base_url = &format!("{}/user/{}", Settings::get().api_endpoint(), self.name);
let mut person = Person::default();
person.object_props.set_context_object(context()).ok();
@@ -31,7 +31,7 @@ impl User_ {
#[cfg(test)]
mod tests {
use super::User_;
- use naive_now;
+ use crate::naive_now;
#[test]
fn test_person() {