Skip to content

Commit 3587734

Browse files
committed
cargo clippy
1 parent f6a8cb1 commit 3587734

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sr/finder/api/hashchecker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ fn match_path(
114114
final_path: &mut Option<PathBuf>,
115115
) -> CmdMin {
116116
if cfg!(feature = "glob") && role_path == "**" {
117-
return CmdMin::builder()
117+
CmdMin::builder()
118118
.matching()
119119
.order(CmdOrder::FullWildcardPath)
120-
.build();
120+
.build()
121121
} else if cmd_path.is_absolute() {
122122
let min = match_single_path(cmd_path, role_path);
123123
verify_executable_conditions(checker, final_path, cmd_path, min).unwrap_or_default()

src/sr/pam/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl ConversationAdapter for SrConversationHandler<'_> {
100100
let pam_prompt = if self.is_pam_password_prompt(&prompt.as_ref().to_string_lossy()) {
101101
self.prompt.clone()
102102
} else {
103-
prompt.as_ref().to_string_lossy().into()
103+
prompt.as_ref().to_string_lossy()
104104
};
105105
let mut term = self.open().map_err(|_| ErrorCode::ConversationError)?;
106106
term.prompt(&pam_prompt)

0 commit comments

Comments
 (0)