Skip to content

Commit 906cc71

Browse files
Fix new rust errors
1 parent 5897397 commit 906cc71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub enum FnAttribute<'a> {
8080

8181
#[cfg(feature="master")]
8282
impl<'a> FnAttribute<'a> {
83-
fn get_value(&self) -> AttributeValue {
83+
fn get_value(&self) -> AttributeValue<'_> {
8484
match *self {
8585
FnAttribute::Alias(value) | FnAttribute::ArmPcs(value)| FnAttribute::RiscvInterrupt(value)
8686
| FnAttribute::Target(value) => AttributeValue::String(value),

src/lvalue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub enum VarAttribute {
5151

5252
#[cfg(feature="master")]
5353
impl VarAttribute {
54-
fn get_value(&self) -> AttributeValue {
54+
fn get_value(&self) -> AttributeValue<'_> {
5555
match *self {
5656
Self::Visibility(visibility) => AttributeValue::String(visibility.as_str()),
5757
Self::Weak => AttributeValue::None,

0 commit comments

Comments
 (0)