mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-27 04:07:16 +00:00
Simplify listener definition (#681)
This simplifies the logic to build the listener by using more clap features instead of manually accessing the PORT environment variable. This also removes unnecessary `unwrap_or` calls that set defaults that are already set by clap.
This commit is contained in:
parent
e238a7b168
commit
2a54043afc
2 changed files with 7 additions and 5 deletions
|
@ -10,7 +10,7 @@ edition = "2021"
|
|||
[dependencies]
|
||||
askama = { version = "0.11.1", default-features = false }
|
||||
cached = "0.40.0"
|
||||
clap = { version = "4.0.24", default-features = false, features = ["std"] }
|
||||
clap = { version = "4.0.24", default-features = false, features = ["std", "env"] }
|
||||
regex = "1.7.0"
|
||||
serde = { version = "1.0.147", features = ["derive"] }
|
||||
cookie = "0.16.1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue