Skip to content

Commit cc1322c

Browse files
committed
return static str in Version::source_dir and lib_name
1 parent c608fc5 commit cc1322c

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
@@ -257,7 +257,7 @@ impl Build {
257257
}
258258

259259
impl Version {
260-
fn source_dir(&self) -> &str {
260+
fn source_dir(&self) -> &'static str {
261261
match self {
262262
Lua51 => "lua-5.1.5",
263263
Lua52 => "lua-5.2.4",
@@ -266,7 +266,7 @@ impl Version {
266266
}
267267
}
268268

269-
fn lib_name(&self) -> &str {
269+
fn lib_name(&self) -> &'static str {
270270
match self {
271271
Lua51 => "lua5.1",
272272
Lua52 => "lua5.2",

0 commit comments

Comments
 (0)