mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-23 13:42:27 +00:00
Simplify deserialization and deconstruction for Responses
This commit is contained in:
1 parent
33bc666859
commit
84d47da392
2 files changed
+18
-31
No files matched your search
@@ -31,7 +31,7 @@ pub fn load(globals: sled::Tree, config: &rocket::Config) -> Result<Self> {
|
||||
.unwrap_or("localhost")
|
||||
.to_string()
|
||||
.try_into()
|
||||
.map_err(|_| Error::bad_database("Private or public keys are invalid."))?,
|
||||
.map_err(|_| Error::BadConfig("Invalid server name found."))?,
|
||||
registration_disabled: config.get_bool("registration_disabled").unwrap_or(false),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user