Skip to content

Commit 6faa6db

Browse files
committed
glib: Remove unnecessary lifetime parameters
1 parent 33b0190 commit 6faa6db

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

glib/src/param_spec.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -859,10 +859,10 @@ impl ParamSpecEnum {
859859
}
860860
}
861861

862-
pub fn builder<'a, T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32>>(
863-
name: &'a str,
862+
pub fn builder<T: StaticType + FromGlib<i32> + IntoGlib<GlibType = i32>>(
863+
name: &str,
864864
default_value: T,
865-
) -> ParamSpecEnumBuilder<'a, T> {
865+
) -> ParamSpecEnumBuilder<T> {
866866
ParamSpecEnumBuilder::new(name, default_value)
867867
}
868868
}
@@ -976,9 +976,9 @@ impl ParamSpecFlags {
976976
}
977977
}
978978

979-
pub fn builder<'a, T: StaticType + FromGlib<u32> + IntoGlib<GlibType = u32>>(
980-
name: &'a str,
981-
) -> ParamSpecFlagsBuilder<'a, T> {
979+
pub fn builder<T: StaticType + FromGlib<u32> + IntoGlib<GlibType = u32>>(
980+
name: &str,
981+
) -> ParamSpecFlagsBuilder<T> {
982982
ParamSpecFlagsBuilder::new(name)
983983
}
984984
}
@@ -1098,7 +1098,7 @@ impl ParamSpecString {
10981098
}
10991099
}
11001100

1101-
pub fn builder<'a>(name: &'a str) -> ParamSpecStringBuilder<'a> {
1101+
pub fn builder(name: &str) -> ParamSpecStringBuilder {
11021102
ParamSpecStringBuilder::new(name)
11031103
}
11041104
}
@@ -1215,7 +1215,7 @@ impl ParamSpecBoxed {
12151215
}
12161216
}
12171217

1218-
pub fn builder<'a, T: StaticType>(name: &'a str) -> ParamSpecBoxedBuilder<'a, T> {
1218+
pub fn builder<T: StaticType>(name: &str) -> ParamSpecBoxedBuilder<T> {
12191219
ParamSpecBoxedBuilder::new(name)
12201220
}
12211221
}
@@ -1417,7 +1417,7 @@ impl ParamSpecObject {
14171417
}
14181418
}
14191419

1420-
pub fn builder<'a, T: StaticType>(name: &'a str) -> ParamSpecObjectBuilder<'a, T> {
1420+
pub fn builder<T: StaticType>(name: &str) -> ParamSpecObjectBuilder<T> {
14211421
ParamSpecObjectBuilder::new(name)
14221422
}
14231423
}

0 commit comments

Comments
 (0)