Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit 7986f31

Browse files
committed
Replace a &Vec<_> by &[_]
1 parent 16c7352 commit 7986f31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/response.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ impl<'a> Into<Data<'a>> for &'a str {
260260
///its size is known.
261261
pub struct Response<'a, 'b> {
262262
writer: Option<hyper::server::response::Response<'a>>,
263-
filters: &'b Vec<Box<ResponseFilter>>,
263+
filters: &'b [Box<ResponseFilter>],
264264
global: &'b Global,
265265
filter_storage: Option<AnyMap>,
266266
force_close: bool
@@ -271,7 +271,7 @@ impl<'a, 'b> Response<'a, 'b> {
271271
///Internal and may change without warning.
272272
pub fn new(
273273
response: hyper::server::response::Response<'a>,
274-
filters: &'b Vec<Box<ResponseFilter>>,
274+
filters: &'b [Box<ResponseFilter>],
275275
global: &'b Global,
276276
force_close: bool
277277
) -> Response<'a, 'b> {
@@ -621,7 +621,7 @@ impl<'a, 'b> Drop for Response<'a, 'b> {
621621
///an overhead for each time `send` or `try_send` is called (simply put).
622622
pub struct Chunked<'a, 'b> {
623623
writer: Option<Result<hyper::server::response::Response<'a, hyper::net::Streaming>, Error>>,
624-
filters: &'b Vec<Box<ResponseFilter>>,
624+
filters: &'b [Box<ResponseFilter>],
625625
global: &'b Global,
626626
filter_storage: AnyMap
627627
}

0 commit comments

Comments
 (0)