Skip to content

Commit 334987d

Browse files
committed
fix doc
1 parent fc0aabb commit 334987d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "qiniu-uploader"
3-
version = "0.1.9"
3+
version = "0.1.10"
44
edition = "2021"
55
description = "Qiniu upload lib with progress bar"
66
authors = ["linghaihui <[email protected]>"]

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl QiniuUploader {
268268
/// - key: 上传文件的key,如test/Cargo.lock
269269
/// - data: T: `Into<Body>`
270270
/// - mime: 文件类型
271-
#[cfg_attr(not(feature = "docs"), doc(cfg(not(feature = "progress-bar"))))]
271+
#[cfg_attr(feature = "docs", doc(cfg(not(feature = "progress-bar"))))]
272272
#[cfg(not(feature = "progress-bar"))]
273273
pub async fn upload_file<T: Into<Body>>(
274274
&self,
@@ -620,7 +620,7 @@ impl QiniuUploader {
620620
/// - file_size: 文件大小,单位 bytes
621621
/// - part_size: 分片上传的大小,单位bytes,1M-1GB之间,如果指定,优先级比`threads`参数高
622622
/// - threads: 分片上传线程,在未指定`part_size`参数的情况下生效,默认5
623-
#[cfg_attr(not(feature = "docs"), doc(cfg(not(feature = "progress-bar"))))]
623+
#[cfg_attr(feature = "docs", doc(cfg(not(feature = "progress-bar"))))]
624624
#[cfg(not(feature = "progress-bar"))]
625625
pub async fn part_upload_file<R: AsyncReadExt + Unpin + Send + Sync + 'static>(
626626
self,

0 commit comments

Comments
 (0)