aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYuchen Wu <[email protected]>2024-09-24 09:18:19 -0700
committerYuchen Wu <[email protected]>2024-10-11 15:40:59 -0700
commit44175e31774dfb74df902e3eb18f7f32a2601abf (patch)
tree2e2c670745bc127feadfaf138093e3a43f880884
parentab1b717bf587723c1c537d6549a8f8096f0900d4 (diff)
downloadpingora-44175e31774dfb74df902e3eb18f7f32a2601abf.tar.gz
pingora-44175e31774dfb74df902e3eb18f7f32a2601abf.zip
Rust 1.81
-rw-r--r--.bleep2
-rw-r--r--pingora-cache/src/cache_control.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/.bleep b/.bleep
index ccd7920..78c2050 100644
--- a/.bleep
+++ b/.bleep
@@ -1 +1 @@
-db1062544ff6061f40cf33801b12a8c407c0d574 \ No newline at end of file
+ec598a02b75ba411b1e1b3ea347e1d3c71b555d2 \ No newline at end of file
diff --git a/pingora-cache/src/cache_control.rs b/pingora-cache/src/cache_control.rs
index 3934a93..46553fb 100644
--- a/pingora-cache/src/cache_control.rs
+++ b/pingora-cache/src/cache_control.rs
@@ -51,8 +51,8 @@ impl DirectiveValue {
/// A [DirectiveValue] without quotes (`"`).
pub fn parse_as_bytes(&self) -> &[u8] {
self.0
- .strip_prefix(&[b'"'])
- .and_then(|bytes| bytes.strip_suffix(&[b'"']))
+ .strip_prefix(b"\"")
+ .and_then(|bytes| bytes.strip_suffix(b"\""))
.unwrap_or(&self.0[..])
}