Skip to content

Commit

Permalink
docs: fix cargo doc lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Nov 28, 2023
1 parent d2ca2a0 commit b50b93e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub fn stream_chunks_default<S: Source>(
}
}

/// [GeneratedSourceInfo] abstraction, see [webpack-sources GeneratedSourceInfo](https://github.com/webpack/webpack-sources/blob/9f98066311d53a153fdc7c633422a1d086528027/lib/helpers/getGeneratedSourceInfo.js)
/// `GeneratedSourceInfo` abstraction, see [webpack-sources GeneratedSourceInfo](https://github.com/webpack/webpack-sources/blob/9f98066311d53a153fdc7c633422a1d086528027/lib/helpers/getGeneratedSourceInfo.js)
#[derive(Debug)]
pub struct GeneratedInfo {
/// Generated line
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub use source_map_source::{
SourceMapSource, SourceMapSourceOptions, WithoutOriginalOptions,
};

/// Reexport [StreamChunks] related types.
/// Reexport `StreamChunks` related types.
pub mod stream_chunks {
pub use super::helpers::{
stream_chunks_default, GeneratedInfo, OnChunk, OnName, OnSource,
Expand Down
4 changes: 2 additions & 2 deletions src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::{
Result,
};

/// An alias for [Box<dyn Source>].
/// An alias for `Box<dyn Source>`.
pub type BoxSource = Arc<dyn Source>;

/// [Source] abstraction, [webpack-sources docs](https://github.com/webpack/webpack-sources/#source).
Expand Down Expand Up @@ -147,7 +147,7 @@ impl<T: Source + 'static> SourceExt for T {
pub struct MapOptions {
/// Whether have columns info in generated [SourceMap] mappings.
pub columns: bool,
/// Whether the source will have changes, internal used for [ReplaceSource], etc.
/// Whether the source will have changes, internal used for `ReplaceSource`, etc.
pub(crate) final_source: bool,
}

Expand Down

1 comment on commit b50b93e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: b50b93e Previous: d2ca2a0 Ratio
benchmark_concat_generate_base64 22130 ns/iter (± 189) 24093 ns/iter (± 137) 0.92
benchmark_concat_generate_base64_with_cache 15977 ns/iter (± 222) 15034 ns/iter (± 68) 1.06
benchmark_concat_generate_string 8605 ns/iter (± 100) 12453 ns/iter (± 35) 0.69
benchmark_concat_generate_string_with_cache 2908 ns/iter (± 31) 3445 ns/iter (± 18) 0.84

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.