diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-10 14:57:16 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-10 14:57:16 +0800 |
| commit | 782d2458dc4ad4336e1407e1f107e43e39b0b991 (patch) | |
| tree | 2619912357c03cae32190388e9436e15431c298c /mingling/src/res/dirs/current_dir.rs | |
| parent | 6b18873666e17ab68ffce799b1707c030166738f (diff) | |
chore: enforce pedantic clippy lints and fix warnings
Diffstat (limited to 'mingling/src/res/dirs/current_dir.rs')
| -rw-r--r-- | mingling/src/res/dirs/current_dir.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mingling/src/res/dirs/current_dir.rs b/mingling/src/res/dirs/current_dir.rs index 54d2b05..2dd6633 100644 --- a/mingling/src/res/dirs/current_dir.rs +++ b/mingling/src/res/dirs/current_dir.rs @@ -23,9 +23,12 @@ pub struct ResCurrentDir { impl ResCurrentDir { /// Creates a new `ResCurrentDir` by querying the OS for the current working directory. /// - /// Returns `Err` if the current directory cannot be determined (e.g., the directory has been - /// deleted or permissions are insufficient). Unlike the `Default` implementation, this - /// method does not panic on failure. + /// # Errors + /// + /// Returns an `Err` if the current directory cannot be determined (e.g., the directory has + /// been deleted or permissions are insufficient). + /// + /// Unlike the `Default` implementation, this method does not panic on failure. pub fn new() -> Result<Self, std::io::Error> { Ok(Self { cwd: current_dir()?, |
