Running cargo +nightly fmt.
This commit is contained in:
parent
5d64dfd4dc
commit
dfa9cb57aa
3 changed files with 59 additions and 42 deletions
|
@ -1,9 +1,14 @@
|
|||
use super::{post::Post};
|
||||
use crate::schema::{comment, comment_like, comment_saved};
|
||||
use url::{ParseError, Url};
|
||||
use super::post::Post;
|
||||
use crate::{
|
||||
naive_now,
|
||||
schema::{comment, comment_like, comment_saved},
|
||||
Crud,
|
||||
Likeable,
|
||||
Saveable,
|
||||
};
|
||||
use diesel::{dsl::*, result::Error, *};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use crate::{Crud, naive_now, Likeable, Saveable};
|
||||
use url::{ParseError, Url};
|
||||
|
||||
// WITH RECURSIVE MyTree AS (
|
||||
// SELECT * FROM comment WHERE parent_id IS NULL
|
||||
|
@ -252,8 +257,16 @@ impl Saveable<CommentSavedForm> for CommentSaved {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::{comment::*, community::*, post::*, tests::establish_unpooled_connection, user::*, SortType, ListingType};
|
||||
use crate::Crud;
|
||||
use crate::{
|
||||
comment::*,
|
||||
community::*,
|
||||
post::*,
|
||||
tests::establish_unpooled_connection,
|
||||
user::*,
|
||||
Crud,
|
||||
ListingType,
|
||||
SortType,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn test_crud() {
|
||||
|
|
|
@ -78,10 +78,14 @@ impl PasswordResetRequest {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{super::user::*};
|
||||
use crate::{tests::establish_unpooled_connection, ListingType, SortType};
|
||||
use crate::password_reset_request::PasswordResetRequest;
|
||||
use crate::Crud;
|
||||
use super::super::user::*;
|
||||
use crate::{
|
||||
password_reset_request::PasswordResetRequest,
|
||||
tests::establish_unpooled_connection,
|
||||
Crud,
|
||||
ListingType,
|
||||
SortType,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn test_crud() {
|
||||
|
|
Loading…
Reference in a new issue