fix: show docs.rs feature flags

This commit is contained in:
ThetaDev 2024-08-18 03:25:02 +02:00
parent 7bd8c9fb15
commit 4e32728c02
4 changed files with 16 additions and 2 deletions

View file

@ -1,4 +1,5 @@
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs, clippy::todo, clippy::dbg_macro)]
mod error;
@ -354,7 +355,7 @@ impl DownloaderBuilder {
self
}
/// Set the [`VideoFormat`] of downloaded videos
/// Set the [`DownloadVideoFormat`] of downloaded videos
#[must_use]
pub fn video_format(mut self, video_format: DownloadVideoFormat) -> Self {
self.video_format = video_format;
@ -627,7 +628,7 @@ impl DownloadQuery {
self
}
/// Set the [`VideoFormat`] of downloaded videos
/// Set the [`DownloadVideoFormat`] of downloaded videos
#[must_use]
pub fn video_format(mut self, video_format: DownloadVideoFormat) -> Self {
self.video_format = Some(video_format);