Skip to content

Commit

Permalink
fix path_ratchet naming incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlgorythm committed Dec 18, 2023
1 parent 45586dc commit 9f3ef7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pam-direct-fallback/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type Result<T> = error_stack::Result<T, Error>;

fn user_file(dir: PathBuf, username: String) -> Result<PathBuf> {
let mut user_data_file = dir;
let user_file_name = SinglePathComponent::new(username).ok_or(Error::InvalidUsername)?;
let user_file_name = SingleComponentPath::new(&username).ok_or(Error::InvalidUsername)?;
user_data_file.push_component(user_file_name);
Ok(user_data_file)
}
Expand Down

0 comments on commit 9f3ef7c

Please sign in to comment.