diff options
| author | Fuwn <[email protected]> | 2025-06-02 13:02:18 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-02 13:02:18 +0000 |
| commit | 7e3cafc07f270fa4cf3903d98215495cdd45882e (patch) | |
| tree | b4bea07e9dbd51eb17bb53f4488abb3d9cc52c9e | |
| parent | chore: Bump version patch (diff) | |
| download | september-7e3cafc07f270fa4cf3903d98215495cdd45882e.tar.xz september-7e3cafc07f270fa4cf3903d98215495cdd45882e.zip | |
chore: Bump MSRV
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | src/response/configuration.rs | 10 |
2 files changed, 8 insertions, 4 deletions
@@ -12,7 +12,7 @@ repository = "https://github.com/gemrest/september" license = "GPL-3.0-only" keywords = ["rust", "gemini", "proxy"] categories = ["web-programming", "web-programming::http-server"] -rust-version = "1.78.0" +rust-version = "1.83.0" # Slower builds, faster executables [profile.release] diff --git a/src/response/configuration.rs b/src/response/configuration.rs index 4278516..9c2cacc 100644 --- a/src/response/configuration.rs +++ b/src/response/configuration.rs @@ -15,9 +15,13 @@ impl Configuration { 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 const 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 const 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 const fn set_no_css(&mut self, is_no_css: bool) { + self.is_no_css = is_no_css; + } } |