Update lib.rs

This commit is contained in:
dullbananas 2024-05-22 16:31:35 -07:00 committed by GitHub
parent 0443bcda96
commit ab8c7d8289
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,6 @@ use url::Url;
about = "A link aggregator for the fediverse", about = "A link aggregator for the fediverse",
long_about = "A link aggregator for the fediverse.\n\nThis is the Lemmy backend API server. This will connect to a PostgreSQL database, run any pending migrations and start accepting API requests." long_about = "A link aggregator for the fediverse.\n\nThis is the Lemmy backend API server. This will connect to a PostgreSQL database, run any pending migrations and start accepting API requests."
)] )]
#[command(args_conflicts_with_subcommands = true)]
// TODO: Instead of defining individual env vars, only specify prefix once supported by clap. // TODO: Instead of defining individual env vars, only specify prefix once supported by clap.
// https://github.com/clap-rs/clap/issues/3221 // https://github.com/clap-rs/clap/issues/3221
pub struct CmdArgs { pub struct CmdArgs {
@ -113,7 +112,6 @@ pub struct CmdArgs {
#[derive(Subcommand, Debug)] #[derive(Subcommand, Debug)]
enum CmdSubcommand { enum CmdSubcommand {
/// Do something with migrations, then exit. /// Do something with migrations, then exit.
#[command(args_conflicts_with_subcommands = false)]
Migration { Migration {
#[command(subcommand)] #[command(subcommand)]
subcommand: MigrationSubcommand, subcommand: MigrationSubcommand,