Use proper notable_trait attr

This commit is contained in:
Waffle 2021-05-08 23:49:00 +03:00
parent 3882a49f6b
commit 728313174f
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
///
/// Also, this trait provides some additional information needed to send a
/// request to Telegram.
#[cfg_attr(all(docsrs, feature = "nightly"), doc(spotlight))]
#[cfg_attr(all(docsrs, feature = "nightly"), doc(notable_trait))]
pub trait Payload {
/// The return type of a Telegram method.
///

View file

@ -16,7 +16,7 @@ use crate::requests::{HasPayload, Output};
/// `B::send_ref` while _not_ meaning to really send the request at the moment.
///
/// [`Throttle<B>`]: crate::adaptors::Throttle
#[cfg_attr(all(docsrs, feature = "nightly"), doc(spotlight))]
#[cfg_attr(all(docsrs, feature = "nightly"), doc(notable_trait))]
pub trait Request: HasPayload {
/*
* Could be mostly `core::future::IntoFuture` though there is no reason to

View file

@ -47,7 +47,7 @@ use crate::{
/// bot.send_message(chat, "hi").send().await.expect("error")
/// }
/// ```
#[cfg_attr(all(docsrs, feature = "nightly"), doc(spotlight))]
#[cfg_attr(all(docsrs, feature = "nightly"), doc(notable_trait))]
pub trait Requester {
/// Error type returned by all requests.
type Err: std::error::Error + Send;