mirror of https://github.com/fafhrd91/actix-web
Update actix-http/src/extensions.rs
Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
parent
5fa6742902
commit
03b30a8d88
|
@ -62,9 +62,9 @@ impl Extensions {
|
||||||
self.map.clear();
|
self.map.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Extends it with the content for another `Extensions`
|
/// Extends self with the items from another `Extensions`.
|
||||||
pub fn extend(&mut self, extensions: Extensions) {
|
pub fn extend(&mut self, other: Extensions) {
|
||||||
self.map.extend(extensions.map);
|
self.map.extend(other.map);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue