Skip to content

Commit 97e9907

Browse files
committed
Fix clippy.
1 parent ab2266c commit 97e9907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ impl ExtendedProcedureInfo {
11621162
) -> Option<&str> {
11631163
self.name
11641164
.get_or_insert_with(|| {
1165-
if proc.type_index == TypeIndex(0) && !proc.name.as_bytes().starts_with(&[b'?']) {
1165+
if proc.type_index == TypeIndex(0) && !proc.name.as_bytes().starts_with(b"?") {
11661166
// We have no type, so proc.name might be an argument-less string.
11671167
// If we have a public symbol at this address which is a decorated name
11681168
// (starts with a '?'), prefer to use that because it'll usually include
@@ -1173,7 +1173,7 @@ impl ExtendedProcedureInfo {
11731173
})
11741174
{
11751175
if let Some(name) = global_functions[public_fun_index].name {
1176-
if name.as_bytes().starts_with(&[b'?']) {
1176+
if name.as_bytes().starts_with(b"?") {
11771177
return Some(name.to_string().to_string());
11781178
}
11791179
}

0 commit comments

Comments
 (0)