Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 committed Jun 15, 2024
1 parent 251c70c commit 6d16caa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metamath-rs/src/axiom_use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct UsagePass<'a> {
impl<'a> UsagePass<'a> {
// Parses the 'usage' commmands in the database,
fn parse_command(
&mut self,
&self,
sref: SegmentRef<'_>,
args: &[CommandToken],
) -> Result<(), Vec<Diagnostic>> {
Expand Down
1 change: 1 addition & 0 deletions metamath-rs/src/bit_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ impl Bitset {
}

fn tail(&self) -> &[usize] {
#[allow(clippy::manual_unwrap_or_default)] // clippy#12928
match self.tail {
None => Default::default(),
Some(ref bx) => bx,
Expand Down
3 changes: 2 additions & 1 deletion metamath-rs/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,8 @@ impl Database {
///
/// Currently there is no way to incrementally fetch diagnostics, so this
/// will be a bit slow if there are thousands of errors.
pub fn diag_notations(&mut self) -> Vec<(StatementAddress, Diagnostic)> {
#[must_use]
pub fn diag_notations(&self) -> Vec<(StatementAddress, Diagnostic)> {
let mut diags = self.parse_result().parse_diagnostics();
if let Some(pass) = self.try_scope_result() {
diags.extend(pass.diagnostics())
Expand Down

0 comments on commit 6d16caa

Please sign in to comment.