cargo clippy
This commit is contained in:
parent
ae00984533
commit
48a7bf5c0a
@ -285,7 +285,7 @@ impl Builder {
|
||||
/// # Parameters
|
||||
///
|
||||
/// - `name`: A string slice representing the name of the new heading. The name is trimmed of
|
||||
/// any leading or trailing whitespace before processing.
|
||||
/// any leading or trailing whitespace before processing.
|
||||
///
|
||||
/// # Behavior
|
||||
///
|
||||
@ -383,15 +383,15 @@ impl Builder {
|
||||
/// # Parameters
|
||||
///
|
||||
/// - `desc`: A string slice representing the new description to be assigned to the last
|
||||
/// classifier. The description is trimmed of any leading or trailing whitespace before being
|
||||
/// set.
|
||||
/// classifier. The description is trimmed of any leading or trailing whitespace before being
|
||||
/// set.
|
||||
///
|
||||
/// # Behavior
|
||||
///
|
||||
/// - The method trims the input description. - It then attempts to update the description of
|
||||
/// the last classifier. If no classifier has been added before this method is called, the
|
||||
/// function will panic, indicating that setting a description requires a preceding classifier
|
||||
/// to be in place.
|
||||
/// the last classifier. If no classifier has been added before this method is called, the
|
||||
/// function will panic, indicating that setting a description requires a preceding classifier
|
||||
/// to be in place.
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
|
@ -82,8 +82,8 @@ impl Parser {
|
||||
/// # Parameters
|
||||
///
|
||||
/// - `url`: The URL from which to fetch the law text. - `builder`: A mutable reference to a
|
||||
/// `law::Builder` instance, which is used to construct the law structure based on the parsed
|
||||
/// content.
|
||||
/// `law::Builder` instance, which is used to construct the law structure based on the parsed
|
||||
/// content.
|
||||
///
|
||||
/// # Returns
|
||||
///
|
||||
|
@ -42,7 +42,7 @@ impl<'a> From<&'a Node<'a, 'a>> for Expect<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Expect<'a> {
|
||||
impl Expect<'_> {
|
||||
fn tag(self, value: &str) -> Self {
|
||||
assert!(
|
||||
self.node.tag_name().name() == value,
|
||||
@ -303,7 +303,7 @@ impl Td {
|
||||
|
||||
let mut c = n.children();
|
||||
|
||||
let Some(next) = c.next() else { return None };
|
||||
let next = c.next()?;
|
||||
|
||||
let absatz = Absatz::parse(next);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user