aboutsummaryrefslogtreecommitdiff
path: root/src/response
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-05-21 08:41:57 +0000
committerFuwn <[email protected]>2025-05-21 08:41:57 +0000
commit0fd7b223c2f73b9f7ba41e395ab4de0a01bc9c04 (patch)
tree72162b1998794387819c3eefdb3c0616195d462b /src/response
parentchore(just): Use base Cargo Justfile from Fuwn/justfiles (diff)
downloadseptember-0fd7b223c2f73b9f7ba41e395ab4de0a01bc9c04.tar.xz
september-0fd7b223c2f73b9f7ba41e395ab4de0a01bc9c04.zip
refactor(src): Remove unnecessary allocations
Diffstat (limited to 'src/response')
-rw-r--r--src/response/configuration.rs28
1 files changed, 20 insertions, 8 deletions
diff --git a/src/response/configuration.rs b/src/response/configuration.rs
index 4278516..42b42f1 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,15 +9,27 @@ 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;
+ }
}