From 77b24eaa3fe23649a81c9312918d504860cbdf00 Mon Sep 17 00:00:00 2001 From: Waffle Date: Sun, 13 Oct 2019 14:39:53 +0300 Subject: [PATCH] Remove `fn main` from doctest (and also remove `edition2018` cause I think it isn't useful) Fix clippy "warning: needless `fn main` in doctest" --- src/types/inline_keyboard_button.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/types/inline_keyboard_button.rs b/src/types/inline_keyboard_button.rs index 5d5b2ee7..27ef8896 100644 --- a/src/types/inline_keyboard_button.rs +++ b/src/types/inline_keyboard_button.rs @@ -44,15 +44,13 @@ pub enum InlineKeyboardButtonKind { /// Build buttons /// /// Example: -/// ```edition2018 +/// ``` /// use async_telegram_bot::types::InlineKeyboardButton; /// -/// fn main() { -/// let url_button = InlineKeyboardButton::url( -/// "Text".to_string(), -/// "http://url.com".to_string(), -/// ); -/// } +/// let url_button = InlineKeyboardButton::url( +/// "Text".to_string(), +/// "http://url.com".to_string(), +/// ); /// ``` impl InlineKeyboardButton { pub fn url(text: String, url: String) -> InlineKeyboardButton {