File tree 3 files changed +0
-4
lines changed
3 files changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,6 @@ impl ExampleCtx {
297
297
pub const TEMPLATE : & ' static str = "example" ;
298
298
299
299
pub fn new ( render_ctx : & RenderContext , example : & str , i : usize ) -> Self {
300
- // Using the context-aware builder with the Example kind
301
300
let id = IdBuilder :: new ( render_ctx. ctx )
302
301
. kind ( IdKind :: Example )
303
302
. index ( i)
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ pub(crate) fn render_class(
16
16
doc_node : & DocNodeWithContext ,
17
17
name : & str ,
18
18
) -> Vec < SectionCtx > {
19
- // Use IdKind::Class to ensure the enum variant is considered used
20
- let _id_kind = IdKind :: Class ; // This will be optimized out in a release build
21
19
let class_def = doc_node. class_def ( ) . unwrap ( ) ;
22
20
23
21
let current_type_params = class_def
Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ impl AsRef<str> for Id {
157
157
}
158
158
}
159
159
160
- /// Sanitize a component for use in an ID
161
160
fn sanitize_id_part ( part : & str ) -> String {
162
161
html_escape:: encode_quoted_attribute ( & TARGET_RE . replace_all ( part, "_" ) )
163
162
. into_owned ( )
You can’t perform that action at this time.
0 commit comments