Skip to content

Commit a580018

Browse files
committed
fix clippy
1 parent d6d252e commit a580018

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

dsc_lib/src/security/mod.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,13 @@ fn is_file_checked(file_path: &Path) -> bool {
3434
/// Check the security of a file.
3535
///
3636
/// # Arguments
37-
///
3837
/// * `file_path` - The path to the file to check.
3938
///
4039
/// # Returns
41-
///
4240
/// * `Ok(())` if the file passes the security checks.
4341
/// * `Err(DscError)` if the file fails the security checks.
4442
///
4543
/// # Errors
46-
///
4744
/// This function will return an error if the Authenticode check fails on Windows.
4845
#[cfg(windows)]
4946
pub fn check_file_security(file_path: &Path) -> Result<(), DscError> {
@@ -52,6 +49,15 @@ pub fn check_file_security(file_path: &Path) -> Result<(), DscError> {
5249
}
5350

5451
/// On non-Windows platforms, this function is a no-op.
52+
///
53+
/// # Arguments
54+
/// * `_file_path` - The path to the file to check.
55+
///
56+
/// # Returns
57+
/// * `Ok(())` always, as there are no security checks on non-Windows platforms.
58+
///
59+
/// # Errors
60+
/// This function does not return any errors on non-Windows platforms.
5561
#[cfg(not(windows))]
5662
pub fn check_file_security(_file_path: &Path) -> Result<(), DscError> {
5763
Ok(())

0 commit comments

Comments
 (0)