From 44175e31774dfb74df902e3eb18f7f32a2601abf Mon Sep 17 00:00:00 2001 From: Yuchen Wu Date: Tue, 24 Sep 2024 09:18:19 -0700 Subject: Rust 1.81 --- .bleep | 2 +- pingora-cache/src/cache_control.rs | 4 ++-- 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[..]) } -- cgit v1.2.3