Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Dec 17, 2024
1 parent 2c7a070 commit e910e7c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,7 @@ fn default_version() -> f64 {

impl Signature {
pub fn name(&self) -> Option<String> {
if let Some(name) = &self.name {
Some(name.clone())
} else {
None
}
self.name.as_ref().map(|name| name.clone())

Check failure on line 449 in src/core/src/signature.rs

View workflow job for this annotation

GitHub Actions / Lints (beta)

this call to `as_ref.map(...)` does nothing

Check failure on line 449 in src/core/src/signature.rs

View workflow job for this annotation

GitHub Actions / Lints (stable)

this call to `as_ref.map(...)` does nothing
}

// return name, if not None; or "" if None.
Expand Down

0 comments on commit e910e7c

Please sign in to comment.