Skip to content

Commit c6afc2d

Browse files
committed
'static bound
1 parent d2beb3b commit c6afc2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate/generic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl<U, T> Variant<U, T> {
279279
///
280280
/// Panics if the value is an `Res`, with a panic message including the
281281
/// passed message, and the content of the `Res`.
282-
pub fn expect(self, msg: &str) -> T {
282+
pub fn expect(self, msg: &'static str) -> T {
283283
match self {
284284
Val(v) => v,
285285
Res(_) => panic!(msg),

0 commit comments

Comments
 (0)