Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dwgnr committed Dec 14, 2024
1 parent f029af7 commit fe2d914
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion usermgmt/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn execute_command() -> AppResult {
/// # Errors
///
/// - If the LDAP or SSH session could not be established because of connection problems or invalid
/// credentials.
/// credentials.
/// - If some arguments in CLI, parameter `args`, for action are not valid.
pub fn run_mgmt(args: cli::GeneralArgs) -> AppResult {
match args.command {
Expand Down
2 changes: 1 addition & 1 deletion usermgmt/src/user_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn ask_for_line_from_user(
///
/// - None if input is empty or only white spaces
/// - Some if input has at least on char which is not white space. Inner value is trimmed or the
/// placeholder if no input was provided.
/// placeholder if no input was provided.
///
/// # Errors
///
Expand Down
4 changes: 2 additions & 2 deletions usermgmt_gui/src/io_resource_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ where
/// # Parameters
/// - [`task`]: Closure which will be completed once the IO task finished.
/// - [`thread_name`]: Name of thread used for IO background task. Useful for logging and
/// debugging.
/// debugging.
///
/// ## Returns
/// - True: if a new task has spawned.
/// - False: if a task is already running or spawning a new task has failed for other
/// reasons.
/// reasons.
pub fn spawn_task<F>(&mut self, task: F, thread_name: String) -> bool
where
F: FnOnce() -> AppResult<T> + Send + 'static,
Expand Down
2 changes: 1 addition & 1 deletion usermgmt_lib/src/config/path_sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static SYSTEM_LOCATIONS: Lazy<Vec<PathBuf>> = Lazy::new(|| {
///
/// - If no configuration file could be found anywhere.
/// - If CWD can not be determined after the configuration file could not be found under the home and
/// system paths.
/// system paths.
///
pub fn get_path_to_conf(manual_path: Option<PathBuf>) -> AppResult<PathBuf> {
get_path_to_conf_with_dep(
Expand Down
2 changes: 1 addition & 1 deletion usermgmt_lib/src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::{
/// # Errors
///
/// - If the attributes of the parameter `to_add` is not compatible with fields of
/// parameter `config`. See [`NewEntity::new_user_addition_conf`].
/// parameter `config`. See [`NewEntity::new_user_addition_conf`].
/// - If the execution of adding an users fails. See [`perform_action_on_context`].
pub fn add_user<T, C>(
to_add: UserToAdd,
Expand Down
2 changes: 1 addition & 1 deletion usermgmt_lib/src/ssh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ where
/// # Errors
///
/// - If agent could not retrieve identities because no agent found, connection could not be
/// established and so on
/// established and so on
pub fn get_agent_with_all_entities(session: &mut Session) -> AppResult<EntitiesAndSshAgent> {
let mut agent = session.agent()?;
agent.connect()?;
Expand Down
2 changes: 1 addition & 1 deletion usermgmt_lib/src/ssh/ssh_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ where
/// - If no ssh agent is accessible.
/// - If no key is registered within ssh agent
/// - If the selection from user is not within the available range of ssh keys registered within
/// ssh agent .
/// ssh agent .
fn try_authenticate_via_ssh_agent(
session: &mut Session,
credentials: &impl SshCredentials,
Expand Down

0 comments on commit fe2d914

Please sign in to comment.