From c63880a29269fcf6e18811cda5aefe926d31c2f7 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 28 Nov 2021 00:46:29 +0000 Subject: [PATCH] doc updates --- bytestring/src/lib.rs | 2 -- local-channel/src/lib.rs | 5 +++++ local-channel/src/mpsc.rs | 4 ++-- local-waker/src/lib.rs | 2 ++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/bytestring/src/lib.rs b/bytestring/src/lib.rs index d831c792..d9c5a253 100644 --- a/bytestring/src/lib.rs +++ b/bytestring/src/lib.rs @@ -3,8 +3,6 @@ #![no_std] #![deny(rust_2018_idioms, nonstandard_style)] #![warn(missing_docs)] -#![doc(html_logo_url = "https://actix.rs/img/logo.png")] -#![doc(html_favicon_url = "https://actix.rs/favicon.ico")] extern crate alloc; diff --git a/local-channel/src/lib.rs b/local-channel/src/lib.rs index b88fd98a..98234eda 100644 --- a/local-channel/src/lib.rs +++ b/local-channel/src/lib.rs @@ -1,3 +1,8 @@ //! Non-thread-safe channels. +#![deny(rust_2018_idioms, nonstandard_style)] +#![warn(missing_docs)] + +extern crate alloc; + pub mod mpsc; diff --git a/local-channel/src/mpsc.rs b/local-channel/src/mpsc.rs index 627d7db0..c75d03bb 100644 --- a/local-channel/src/mpsc.rs +++ b/local-channel/src/mpsc.rs @@ -1,13 +1,13 @@ //! A non-thread-safe multi-producer, single-consumer, futures-aware, FIFO queue. +use alloc::{collections::VecDeque, rc::Rc}; use core::{ cell::RefCell, fmt, pin::Pin, task::{Context, Poll}, }; - -use std::{collections::VecDeque, error::Error, rc::Rc}; +use std::error::Error; use futures_core::stream::Stream; use futures_sink::Sink; diff --git a/local-waker/src/lib.rs b/local-waker/src/lib.rs index c76badee..b1911651 100644 --- a/local-waker/src/lib.rs +++ b/local-waker/src/lib.rs @@ -3,6 +3,8 @@ //! See docs for [`LocalWaker`]. #![no_std] +#![deny(rust_2018_idioms, nonstandard_style)] +#![warn(missing_docs)] use core::{cell::Cell, fmt, marker::PhantomData, task::Waker};