Skip to content

Commit 7600bf8

Browse files
waywardmonkeyspvdrz
authored andcommitted
Fix clippy::doc_lazy_continuation lints
1 parent 218bae9 commit 7600bf8

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

bindgen/codegen/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1658,13 +1658,13 @@ fn access_specifier(
16581658

16591659
/// Compute a fields or structs visibility based on multiple conditions.
16601660
/// 1. If the element was declared public, and we respect such CXX accesses specs
1661-
/// (context option) => By default Public, but this can be overruled by an `annotation`.
1661+
/// (context option) => By default Public, but this can be overruled by an `annotation`.
16621662
///
16631663
/// 2. If the element was declared private, and we respect such CXX accesses specs
1664-
/// (context option) => By default Private, but this can be overruled by an `annotation`.
1664+
/// (context option) => By default Private, but this can be overruled by an `annotation`.
16651665
///
16661666
/// 3. If we do not respect visibility modifiers, the result depends on the `annotation`,
1667-
/// if any, or the passed `default_kind`.
1667+
/// if any, or the passed `default_kind`.
16681668
///
16691669
fn compute_visibility(
16701670
ctx: &BindgenContext,

bindgen/ir/analysis/sizedness.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ impl ops::BitOrAssign for SizednessResult {
8787
/// An analysis that computes the sizedness of all types.
8888
///
8989
/// * For types with known sizes -- for example pointers, scalars, etc... --
90-
/// they are assigned `NonZeroSized`.
90+
/// they are assigned `NonZeroSized`.
9191
///
9292
/// * For compound structure types with one or more fields, they are assigned
93-
/// `NonZeroSized`.
93+
/// `NonZeroSized`.
9494
///
9595
/// * For compound structure types without any fields, the results of the bases
96-
/// are `join`ed.
96+
/// are `join`ed.
9797
///
9898
/// * For type parameters, `DependsOnTypeParam` is assigned.
9999
#[derive(Debug)]

bindgen/ir/analysis/template_params.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ use crate::{HashMap, HashSet};
124124
/// ```
125125
///
126126
/// * Finally, for all other IR item kinds, we use our lattice's `join`
127-
/// operation: set union with each successor of the given item's template
128-
/// parameter usage:
127+
/// operation: set union with each successor of the given item's template
128+
/// parameter usage:
129129
///
130130
/// ```ignore
131131
/// template_param_usage(v) =

bindgen/ir/derive.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
//! These traits tend to come in pairs:
44
//!
55
//! 1. A "trivial" version, whose implementations aren't allowed to recursively
6-
//! look at other types or the results of fix point analyses.
6+
//! look at other types or the results of fix point analyses.
77
//!
88
//! 2. A "normal" version, whose implementations simply query the results of a
9-
//! fix point analysis.
9+
//! fix point analysis.
1010
//!
1111
//! The former is used by the analyses when creating the results queried by the
1212
//! second.

bindgen/ir/template.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! brief definitions:
55
//!
66
//! * "Template definition": a class/struct/alias/function definition that takes
7-
//! generic template parameters. For example:
7+
//! generic template parameters. For example:
88
//!
99
//! ```c++
1010
//! template<typename T>
@@ -14,11 +14,11 @@
1414
//! ```
1515
//!
1616
//! * "Template instantiation": an instantiation is a use of a template with
17-
//! concrete template arguments. For example, `List<int>`.
17+
//! concrete template arguments. For example, `List<int>`.
1818
//!
1919
//! * "Template specialization": an alternative template definition providing a
20-
//! custom definition for instantiations with the matching template
21-
//! arguments. This C++ feature is unsupported by bindgen. For example:
20+
//! custom definition for instantiations with the matching template
21+
//! arguments. This C++ feature is unsupported by bindgen. For example:
2222
//!
2323
//! ```c++
2424
//! template<>

bindgen/options/mod.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ use helpers::ignore;
3535
/// a block of code with the following items:
3636
///
3737
/// - `default`: The default value for the field. If this item is omitted, `Default::default()` is
38-
/// used instead, meaning that the type of the field must implement `Default`.
38+
/// used instead, meaning that the type of the field must implement `Default`.
3939
/// - `methods`: A block of code containing methods for the `Builder` type. These methods should be
40-
/// related to the field being declared.
40+
/// related to the field being declared.
4141
/// - `as_args`: This item declares how the field should be converted into a valid CLI argument for
42-
/// `bindgen` and is used in the [`Builder::command_line_flags`] method which is used to do a
43-
/// roundtrip test of the CLI args in the `bindgen-test` crate. This item can take one of the
44-
/// following:
42+
/// `bindgen` and is used in the [`Builder::command_line_flags`] method which is used to do a
43+
/// roundtrip test of the CLI args in the `bindgen-test` crate. This item can take one of the
44+
/// following:
4545
/// - A string literal with the flag if the type of the field implements the [`AsArgs`] trait.
4646
/// - A closure with the signature `|field, args: &mut Vec<String>| -> ()` that pushes arguments
47-
/// into the `args` buffer based on the value of the field. This is used if the field does not
48-
/// implement `AsArgs` or if the implementation of the trait is not logically correct for the
49-
/// option and a custom behavior must be taken into account.
47+
/// into the `args` buffer based on the value of the field. This is used if the field does not
48+
/// implement `AsArgs` or if the implementation of the trait is not logically correct for the
49+
/// option and a custom behavior must be taken into account.
5050
/// - The `ignore` literal, which does not emit any CLI arguments for this field. This is useful
51-
/// if the field cannot be used from the `bindgen` CLI.
51+
/// if the field cannot be used from the `bindgen` CLI.
5252
///
5353
/// As an example, this would be the declaration of a `bool` field called `be_fun` whose default
5454
/// value is `false` (the `Default` value for `bool`):

0 commit comments

Comments
 (0)