mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +01:00
[fix]: format tree
This commit is contained in:
parent
36af08918e
commit
db996b56a9
|
|
@ -26,7 +26,7 @@
|
||||||
libiconv
|
libiconv
|
||||||
openssl
|
openssl
|
||||||
];
|
];
|
||||||
naersk' = pkgs.callPackage inputs.naersk {};
|
naersk' = pkgs.callPackage inputs.naersk { };
|
||||||
rust-toolchain = pkgs.symlinkJoin {
|
rust-toolchain = pkgs.symlinkJoin {
|
||||||
name = "rust-toolchain";
|
name = "rust-toolchain";
|
||||||
paths = [ pkgs.rustc pkgs.cargo pkgs.cargo-watch pkgs.rust-analyzer pkgs.rustPlatform.rustcSrc ];
|
paths = [ pkgs.rustc pkgs.cargo pkgs.cargo-watch pkgs.rust-analyzer pkgs.rustPlatform.rustcSrc ];
|
||||||
|
|
|
||||||
11
src/main.rs
11
src/main.rs
|
|
@ -25,13 +25,12 @@ mod objects;
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
struct Config {
|
struct Config {}
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
struct State {
|
struct State {
|
||||||
database: Arc<Database>,
|
database: Arc<Database>,
|
||||||
config: Arc<Config>
|
config: Arc<Config>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
|
|
@ -92,13 +91,11 @@ async fn main() -> actix_web::Result<(), anyhow::Error> {
|
||||||
users: Mutex::new(vec![local_user]),
|
users: Mutex::new(vec![local_user]),
|
||||||
});
|
});
|
||||||
|
|
||||||
let config = Config {
|
let config = Config {};
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
let state: State = State {
|
let state: State = State {
|
||||||
database: new_database,
|
database: new_database,
|
||||||
config: Arc::new(config)
|
config: Arc::new(config),
|
||||||
};
|
};
|
||||||
|
|
||||||
let data = FederationConfig::builder()
|
let data = FederationConfig::builder()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue