From 70f71e5ea2d9ef86d76775aa2756ed4868b4826e Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sun, 13 Dec 2020 15:53:08 +0530 Subject: [PATCH] rm blank comments and readme doc link fixes --- README.md | 4 ++-- actix-files/README.md | 4 ++-- actix-http-test/README.md | 4 ++-- actix-http/README.md | 4 ++-- actix-http/src/header/map.rs | 2 -- actix-multipart/README.md | 2 +- actix-web-actors/README.md | 2 +- actix-web-codegen/README.md | 4 ++-- awc/README.md | 4 ++-- src/middleware/logger.rs | 1 - 10 files changed, 14 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 3dfb435fa..b9f2b7594 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@

[![crates.io](https://img.shields.io/crates/v/actix-web?label=latest)](https://crates.io/crates/actix-web) -[![Documentation](https://docs.rs/actix-web/badge.svg?version=3.3.2)](actix_web) +[![Documentation](https://docs.rs/actix-web/badge.svg?version=3.3.2)](https://docs.rs/actix-web/3.3.2) [![Version](https://img.shields.io/badge/rustc-1.42+-ab6000.svg)](https://blog.rust-lang.org/2020/03/12/Rust-1.42.html) ![License](https://img.shields.io/crates/l/actix-web.svg) [![Dependency Status](https://deps.rs/crate/actix-web/3.3.2/status.svg)](https://deps.rs/crate/actix-web/3.3.2) @@ -40,7 +40,7 @@ * [Website & User Guide](https://actix.rs) * [Examples Repository](https://github.com/actix/examples) -* [API Documentation](actix_web) +* [API Documentation](https://docs.rs/actix-web) * [API Documentation (master branch)](https://actix.rs/actix-web/actix_web) ## Example diff --git a/actix-files/README.md b/actix-files/README.md index ffc22758d..685e5dbe5 100644 --- a/actix-files/README.md +++ b/actix-files/README.md @@ -3,7 +3,7 @@ > Static file serving for Actix Web [![crates.io](https://img.shields.io/crates/v/actix-files?label=latest)](https://crates.io/crates/actix-files) -[![Documentation](https://docs.rs/actix-files/badge.svg?version=0.4.1)](actix_files) +[![Documentation](https://docs.rs/actix-files/badge.svg?version=0.4.1)](https://docs.rs/actix-files/0.4.1) [![Version](https://img.shields.io/badge/rustc-1.42+-ab6000.svg)](https://blog.rust-lang.org/2020/03/12/Rust-1.42.html) ![License](https://img.shields.io/crates/l/actix-files.svg)
@@ -13,7 +13,7 @@ ## Documentation & Resources -- [API Documentation](actix_files) +- [API Documentation](https://docs.rs/actix-files/) - [Example Project](https://github.com/actix/examples/tree/master/static_index) - [Chat on Gitter](https://gitter.im/actix/actix-web) - Minimum supported Rust version: 1.42 or later diff --git a/actix-http-test/README.md b/actix-http-test/README.md index 25940dea4..c847c8515 100644 --- a/actix-http-test/README.md +++ b/actix-http-test/README.md @@ -3,13 +3,13 @@ > Various helpers for Actix applications to use during testing. [![crates.io](https://img.shields.io/crates/v/actix-http-test?label=latest)](https://crates.io/crates/actix-http-test) -[![Documentation](https://docs.rs/actix-http-test/badge.svg?version=2.1.0)](actix_http_test) +[![Documentation](https://docs.rs/actix-http-test/badge.svg?version=2.1.0)](https://docs.rs/actix-http-test/2.1.0) ![Apache 2.0 or MIT licensed](https://img.shields.io/crates/l/actix-http-test) [![Dependency Status](https://deps.rs/crate/actix-http-test/2.1.0/status.svg)](https://deps.rs/crate/actix-http-test/2.1.0) [![Join the chat at https://gitter.im/actix/actix-web](https://badges.gitter.im/actix/actix-web.svg)](https://gitter.im/actix/actix-web?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## Documentation & Resources -- [API Documentation](actix_http_test) +- [API Documentation](https://docs.rs/actix-http-test) - [Chat on Gitter](https://gitter.im/actix/actix-web) - Minimum Supported Rust Version (MSRV): 1.42.0 diff --git a/actix-http/README.md b/actix-http/README.md index 0a6a989db..9103cd184 100644 --- a/actix-http/README.md +++ b/actix-http/README.md @@ -3,14 +3,14 @@ > HTTP primitives for the Actix ecosystem. [![crates.io](https://img.shields.io/crates/v/actix-http?label=latest)](https://crates.io/crates/actix-http) -[![Documentation](https://docs.rs/actix-http/badge.svg?version=2.2.0)](actix_http) +[![Documentation](https://docs.rs/actix-http/badge.svg?version=2.2.0)](https://docs.rs/actix-http/2.2.0) ![Apache 2.0 or MIT licensed](https://img.shields.io/crates/l/actix-http) [![Dependency Status](https://deps.rs/crate/actix-http/2.2.0/status.svg)](https://deps.rs/crate/actix-http/2.2.0) [![Join the chat at https://gitter.im/actix/actix-web](https://badges.gitter.im/actix/actix-web.svg)](https://gitter.im/actix/actix-web?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## Documentation & Resources -- [API Documentation](actix_http) +- [API Documentation](https://docs.rs/actix-http) - [Chat on Gitter](https://gitter.im/actix/actix-web) - Minimum Supported Rust Version (MSRV): 1.42.0 diff --git a/actix-http/src/header/map.rs b/actix-http/src/header/map.rs index e5c3df515..6ab3509f7 100644 --- a/actix-http/src/header/map.rs +++ b/actix-http/src/header/map.rs @@ -8,7 +8,6 @@ use http::header::{HeaderName, HeaderValue}; /// A set of HTTP headers /// /// `HeaderMap` is an multi-map of [`HeaderName`] to values. -/// #[derive(Debug, Clone)] pub struct HeaderMap { pub(crate) inner: FxHashMap, @@ -140,7 +139,6 @@ impl HeaderMap { /// The returned view does not incur any allocations and allows iterating /// the values associated with the key. See [`GetAll`] for more details. /// Returns `None` if there are no values associated with the key. - /// pub fn get_all(&self, name: N) -> GetAll<'_> { GetAll { idx: 0, diff --git a/actix-multipart/README.md b/actix-multipart/README.md index f192d8773..edb2e0020 100644 --- a/actix-multipart/README.md +++ b/actix-multipart/README.md @@ -2,7 +2,7 @@ ## Documentation & community resources -* [API Documentation](actix_multipart) +* [API Documentation](https://docs.rs/actix-multipart/) * [Chat on gitter](https://gitter.im/actix/actix) * Cargo package: [actix-multipart](https://crates.io/crates/actix-multipart) * Minimum supported Rust version: 1.40 or later diff --git a/actix-web-actors/README.md b/actix-web-actors/README.md index 14e4c4cc2..fb8c3a621 100644 --- a/actix-web-actors/README.md +++ b/actix-web-actors/README.md @@ -2,7 +2,7 @@ Actix actors support for actix web framework [![Build Status](https://travis-ci. ## Documentation & community resources -* [API Documentation](actix_web_actors) +* [API Documentation](https://docs.rs/actix-web-actors/) * [Chat on gitter](https://gitter.im/actix/actix) * Cargo package: [actix-web-actors](https://crates.io/crates/actix-web-actors) * Minimum supported Rust version: 1.40 or later diff --git a/actix-web-codegen/README.md b/actix-web-codegen/README.md index 50b4eb50b..283591e86 100644 --- a/actix-web-codegen/README.md +++ b/actix-web-codegen/README.md @@ -3,7 +3,7 @@ > Helper and convenience macros for Actix Web [![crates.io](https://meritbadge.herokuapp.com/actix-web-codegen)](https://crates.io/crates/actix-web-codegen) -[![Documentation](https://docs.rs/actix-web-codegen/badge.svg)](https://docs.rs/actix-web) +[![Documentation](https://docs.rs/actix-web-codegen/badge.svg)](https://docs.rs/actix-web-codegen/0.4.0/actix_web_codegen/) [![Version](https://img.shields.io/badge/rustc-1.42+-ab6000.svg)](https://blog.rust-lang.org/2020/03/12/Rust-1.42.html) [![Build Status](https://travis-ci.org/actix/actix-web.svg?branch=master)](https://travis-ci.org/actix/actix-web) [![codecov](https://codecov.io/gh/actix/actix-web/branch/master/graph/badge.svg)](https://codecov.io/gh/actix/actix-web) @@ -11,7 +11,7 @@ ## Documentation & Resources -- [API Documentation](actix_web_codegen) +- [API Documentation](https://docs.rs/actix-web-codegen) - [Chat on Gitter](https://gitter.im/actix/actix-web) - Cargo package: [actix-web-codegen](https://crates.io/crates/actix-web-codegen) - Minimum supported Rust version: 1.42 or later. diff --git a/awc/README.md b/awc/README.md index 2a1e23001..b97d4fa00 100644 --- a/awc/README.md +++ b/awc/README.md @@ -3,14 +3,14 @@ > Async HTTP and WebSocket client library. [![crates.io](https://img.shields.io/crates/v/awc?label=latest)](https://crates.io/crates/awc) -[![Documentation](https://docs.rs/awc/badge.svg?version=2.0.3)](awc) +[![Documentation](https://docs.rs/awc/badge.svg?version=2.0.3)](https://docs.rs/awc/2.0.3) ![Apache 2.0 or MIT licensed](https://img.shields.io/crates/l/awc) [![Dependency Status](https://deps.rs/crate/awc/2.0.3/status.svg)](https://deps.rs/crate/awc/2.0.3) [![Join the chat at https://gitter.im/actix/actix-web](https://badges.gitter.im/actix/actix-web.svg)](https://gitter.im/actix/actix-web?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ## Documentation & Resources -- [API Documentation](awc) +- [API Documentation](https://docs.rs/awc) - [Example Project](https://github.com/actix/examples/tree/HEAD/awc_https) - [Chat on Gitter](https://gitter.im/actix/actix-web) - Minimum Supported Rust Version (MSRV): 1.42.0 diff --git a/src/middleware/logger.rs b/src/middleware/logger.rs index 061aac57d..4f3e61e68 100644 --- a/src/middleware/logger.rs +++ b/src/middleware/logger.rs @@ -86,7 +86,6 @@ use crate::HttpResponse; /// /// If you use this value ensure that all requests come from trusted hosts, since it is trivial /// for the remote client to simulate being another client. -/// pub struct Logger(Rc); struct Inner {