mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-25 21:11:01 +00:00
Clippy
This commit is contained in:
parent
b38d55f486
commit
3b3148fa6b
1 changed files with 17 additions and 13 deletions
|
@ -463,20 +463,24 @@ mod tests {
|
||||||
Instance::cache_local(conn);
|
Instance::cache_local(conn);
|
||||||
instance
|
instance
|
||||||
});
|
});
|
||||||
let mut user = NewUser::default();
|
let user = NewUser {
|
||||||
user.instance_id = instance.id;
|
instance_id: instance.id,
|
||||||
user.username = random_hex();
|
username: random_hex(),
|
||||||
user.ap_url = random_hex();
|
ap_url: random_hex(),
|
||||||
user.inbox_url = random_hex();
|
inbox_url: random_hex(),
|
||||||
user.outbox_url = random_hex();
|
outbox_url: random_hex(),
|
||||||
user.followers_endpoint = random_hex();
|
followers_endpoint: random_hex(),
|
||||||
|
..Default::default()
|
||||||
|
};
|
||||||
let user = User::insert(conn, user).unwrap();
|
let user = User::insert(conn, user).unwrap();
|
||||||
let mut blog = NewBlog::default();
|
let blog = NewBlog {
|
||||||
blog.instance_id = instance.id;
|
instance_id: instance.id,
|
||||||
blog.actor_id = random_hex();
|
actor_id: random_hex(),
|
||||||
blog.ap_url = random_hex();
|
ap_url: random_hex(),
|
||||||
blog.inbox_url = random_hex();
|
inbox_url: random_hex(),
|
||||||
blog.outbox_url = random_hex();
|
outbox_url: random_hex(),
|
||||||
|
..Default::default()
|
||||||
|
};
|
||||||
let blog = Blog::insert(conn, blog).unwrap();
|
let blog = Blog::insert(conn, blog).unwrap();
|
||||||
BlogAuthor::insert(
|
BlogAuthor::insert(
|
||||||
conn,
|
conn,
|
||||||
|
|
Loading…
Reference in a new issue