cargo fmt

This commit is contained in:
Igor Galić
2020-02-18 09:27:12 +01:00
parent be8c67ee9a
commit e9c7259ffb
8 changed files with 37 additions and 28 deletions
+3 -3
View File
@@ -32,15 +32,15 @@ impl<'r> Responder<'r> for ApiError {
Error::NotFound => Json(json!({
"error": "Not found"
}))
.respond_to(req),
.respond_to(req),
Error::Unauthorized => Json(json!({
"error": "You are not authorized to access this resource"
}))
.respond_to(req),
.respond_to(req),
_ => Json(json!({
"error": "Server error"
}))
.respond_to(req),
.respond_to(req),
}
}
}
+1 -1
View File
@@ -6,8 +6,8 @@ use rocket_contrib::json::Json;
use rocket_i18n::I18n;
use scheduled_thread_pool::ScheduledThreadPool;
use serde_json;
use std::str::FromStr;
use std::path::PathBuf;
use std::str::FromStr;
use validator::{Validate, ValidationErrors};
use crate::inbox;
+1 -1
View File
@@ -11,7 +11,7 @@ use std::{
use validator::{Validate, ValidationError, ValidationErrors};
use crate::routes::{
comments::NewCommentForm, errors::ErrorPage, Page, ContentLen, RemoteForm, RespondOrRedirect,
comments::NewCommentForm, errors::ErrorPage, ContentLen, Page, RemoteForm, RespondOrRedirect,
};
use crate::template_utils::{IntoContext, Ructe};
use plume_common::activity_pub::{broadcast, ActivityStream, ApRequest};