vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 53cc8a65af6140a1c53d4db4e21b97c0b2261b51
parent f94ac6ca61e24952e3906018ee54615cf9c123ec
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sat, 23 Oct 2021 20:46:39 +0200

Add doc comments to the functions in Config, and remove some unneeded pubs

Diffstat:
Msrc/config.rs | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/config.rs b/src/config.rs @@ -162,11 +162,12 @@ macro_rules! make_config { } #[derive(Debug, Clone, Default)] - pub struct ConfigItems { $($(pub $name: make_config!{@type $ty, $none_action}, )+)+ } + struct ConfigItems { $($( $name: make_config!{@type $ty, $none_action}, )+)+ } #[allow(unused)] impl Config { $($( + $(#[doc = $doc])+ pub fn $name(&self) -> make_config!{@type $ty, $none_action} { self.inner.read().unwrap().config.$name.clone() } @@ -707,7 +708,7 @@ impl Config { Ok(()) } - pub fn update_config_partial(&self, other: ConfigBuilder) -> Result<(), Error> { + fn update_config_partial(&self, other: ConfigBuilder) -> Result<(), Error> { let builder = { let usr = &self.inner.read().unwrap()._usr; let mut _overrides = Vec::new();