summaryrefslogtreecommitdiff
path: root/core/async_cell.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-01-27 10:43:16 -0500
committerGitHub <noreply@github.com>2023-01-27 10:43:16 -0500
commitf5840bdcd360ec0bac2501f333e58e25742b1537 (patch)
tree7eb0818d2cafa0f6824e81b6ed2cfb609830971e /core/async_cell.rs
parent1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff)
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'core/async_cell.rs')
-rw-r--r--core/async_cell.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/async_cell.rs b/core/async_cell.rs
index f95dc3a84..a5b8d5467 100644
--- a/core/async_cell.rs
+++ b/core/async_cell.rs
@@ -577,7 +577,7 @@ mod internal {
pub fn add(self, mode: BorrowMode) -> BorrowCount {
match self.try_add(mode) {
Some(value) => value,
- None => panic!("Can't add {:?} to {:?}", mode, self),
+ None => panic!("Can't add {mode:?} to {self:?}"),
}
}
@@ -596,7 +596,7 @@ mod internal {
pub fn remove(self, mode: BorrowMode) -> BorrowCount {
match self.try_remove(mode) {
Some(value) => value,
- None => panic!("Can't remove {:?} from {:?}", mode, self),
+ None => panic!("Can't remove {mode:?} from {self:?}"),
}
}
}