Skip to content

Commit 57c817e

Browse files
authored
Merge pull request #319 from fox0/clippy--redundant_static_lifetimes
Fix clippy::redundant_static_lifetimes
2 parents 8038115 + d25c4f1 commit 57c817e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

plib/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub mod sccsfile;
1818
pub mod testing;
1919
pub mod utmpx;
2020

21-
pub const PROJECT_NAME: &'static str = "posixutils-rs";
21+
pub const PROJECT_NAME: &str = "posixutils-rs";
2222

2323
pub const BUFSZ: usize = 8 * 1024;
2424

screen/stty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use termios::{
2323
Termios, TCSANOW,
2424
};
2525

26-
const HDR_SAVE: &'static str = "pfmt1";
26+
const HDR_SAVE: &str = "pfmt1";
2727

2828
#[derive(Parser)]
2929
#[command(version, about = gettext("stty - set the options for a terminal"))]

users/pwd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use plib::PROJECT_NAME;
1616
use std::ffi::OsStr;
1717
use std::path::{Component, Path};
1818

19-
const PWD_ENV: &'static str = "PWD";
19+
const PWD_ENV: &str = "PWD";
2020

2121
/// pwd - return working directory name
2222
#[derive(Parser)]

0 commit comments

Comments
 (0)