mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-10 06:54:12 +00:00
fmt
This commit is contained in:
parent
1bcc34a199
commit
6c6f7c6dff
3 changed files with 4 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
|||
use super::not_zero;
|
||||
use crate::site::{application_question_check, site_default_post_listing_type_check};
|
||||
use activitypub_federation::{config::Data, http_signatures::generate_actor_keypair};
|
||||
use actix_web::web::Json;
|
||||
|
@ -41,8 +42,6 @@ use lemmy_utils::{
|
|||
};
|
||||
use url::Url;
|
||||
|
||||
use super::not_zero;
|
||||
|
||||
#[tracing::instrument(skip(context))]
|
||||
pub async fn create_site(
|
||||
data: Json<CreateSite>,
|
||||
|
|
|
@ -98,6 +98,6 @@ mod tests {
|
|||
fn not_zero(val: Option<i32>) -> Option<i32> {
|
||||
match val {
|
||||
Some(0) => None,
|
||||
v => v
|
||||
v => v,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
use super::not_zero;
|
||||
use crate::site::{application_question_check, site_default_post_listing_type_check};
|
||||
use activitypub_federation::config::Data;
|
||||
use actix_web::web::Json;
|
||||
|
@ -46,8 +47,6 @@ use lemmy_utils::{
|
|||
},
|
||||
};
|
||||
|
||||
use super::not_zero;
|
||||
|
||||
#[tracing::instrument(skip(context))]
|
||||
pub async fn update_site(
|
||||
data: Json<EditSite>,
|
||||
|
|
Loading…
Reference in a new issue