Update actix-http/src/lib.rs

Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
fakeshadow 2021-01-06 19:41:19 +08:00 committed by GitHub
parent 0def1aec27
commit 12de0e96fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ impl OnConnectData {
// merge self to given request's head extension.
#[inline]
pub(crate) fn merge(&mut self, req: &mut Request) {
pub(crate) fn merge_into(&mut self, req: &mut Request) {
if let Some(ref mut ext) = self.0 {
req.head.extensions.get_mut().drain_from(ext);
}