Skip to content

Commit

Permalink
docs: fix cargo doc lint warnings (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen authored Nov 28, 2023
1 parent d2ca2a0 commit cf4c505
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 cf4c505

@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: cf4c505 Previous: b50b93e Ratio
benchmark_concat_generate_base64 22042 ns/iter (± 656) 22130 ns/iter (± 189) 1.00
benchmark_concat_generate_base64_with_cache 16068 ns/iter (± 269) 15977 ns/iter (± 222) 1.01
benchmark_concat_generate_string 8889 ns/iter (± 388) 8605 ns/iter (± 100) 1.03
benchmark_concat_generate_string_with_cache 3031 ns/iter (± 34) 2908 ns/iter (± 31) 1.04

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

Please sign in to comment.