Skip to content

Commit 3383392

Browse files
authored
style: fix docs and dead code lint (#1340)
* style: fix docs and dead code lint * style: feature flag dead code lint to v1 api for thumbnail from path
1 parent e6bc2be commit 3383392

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sdk/src/ingredient.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ impl Ingredient {
14291429

14301430
/// Automatically generate a thumbnail for the ingredient if missing and enabled in settings.
14311431
///
1432-
/// This function takes into account the [Settings][crate::Settings]:
1432+
/// This function takes into account the [Settings][crate::settings::Settings]:
14331433
/// * `builder.thumbnail.enabled`
14341434
#[cfg(feature = "add_thumbnails")]
14351435
pub fn maybe_add_thumbnail<R>(&mut self, format: &str, stream: &mut R) -> Result<()>

sdk/src/utils/thumbnail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ impl fmt::Display for ThumbnailFormat {
9999
/// * `builder.thumbnail.ignore_errors`
100100
///
101101
/// Read [make_thumbnail_from_stream] for more information.
102+
#[cfg_attr(feature = "v1_api", allow(dead_code))]
102103
#[cfg(feature = "file_io")]
103104
pub fn make_thumbnail_bytes_from_path(
104105
path: &std::path::Path,

0 commit comments

Comments
 (0)