diff options
| author | Fuwn <[email protected]> | 2025-01-14 08:05:37 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-01-14 08:05:44 +0000 |
| commit | 01ec3ddfc7cba24a912e422e3ff1928ace3b3d25 (patch) | |
| tree | 82c00db9074e2e85a5e6e0908625e8ae028896ad /src | |
| parent | fix(html): relative url handling (diff) | |
| download | september-01ec3ddfc7cba24a912e422e3ff1928ace3b3d25.tar.xz september-01ec3ddfc7cba24a912e422e3ff1928ace3b3d25.zip | |
format(configuration): reformat using rustfmt rules
Diffstat (limited to 'src')
| -rw-r--r-- | src/response/configuration.rs | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/src/response/configuration.rs b/src/response/configuration.rs index 42b42f1..4278516 100644 --- a/src/response/configuration.rs +++ b/src/response/configuration.rs @@ -1,6 +1,6 @@ pub struct Configuration { - is_proxy: bool, - is_raw: bool, + is_proxy: bool, + is_raw: bool, is_no_css: bool, } @@ -9,27 +9,15 @@ impl Configuration { Self { is_proxy: false, is_raw: false, is_no_css: false } } - pub const fn is_proxy(&self) -> bool { - self.is_proxy - } + pub const fn is_proxy(&self) -> bool { self.is_proxy } - pub const fn is_raw(&self) -> bool { - self.is_raw - } + pub const fn is_raw(&self) -> bool { self.is_raw } - pub const fn is_no_css(&self) -> bool { - self.is_no_css - } + pub const fn is_no_css(&self) -> bool { self.is_no_css } - pub fn set_proxy(&mut self, is_proxy: bool) { - self.is_proxy = is_proxy; - } + pub fn set_proxy(&mut self, is_proxy: bool) { self.is_proxy = is_proxy; } - pub fn set_raw(&mut self, is_raw: bool) { - self.is_raw = is_raw; - } + pub fn set_raw(&mut self, is_raw: bool) { self.is_raw = is_raw; } - pub fn set_no_css(&mut self, is_no_css: bool) { - self.is_no_css = is_no_css; - } + pub fn set_no_css(&mut self, is_no_css: bool) { self.is_no_css = is_no_css; } } |