Skip to content

Commit 87be2d1

Browse files
committed
docs: remove ignored doctest example from convert_lock_error method
The ignored doctest example was appearing in test output as a skipped test (in yellow), which created confusion about why there was an ignored test. Since this is a private helper method with a straightforward usage pattern, the doctest example adds no testing value and only clutters the test results. The method documentation still clearly explains its purpose, parameters, and behavior without the non-runnable code example.
1 parent c19fa17 commit 87be2d1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/infrastructure/persistence/filesystem/json_file_repository.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -467,13 +467,6 @@ impl JsonFileRepository {
467467
/// * `error` - The lock error to convert
468468
/// * `file_path` - Path to the file being locked
469469
/// * `operation` - Description of the operation being performed (e.g., "save", "load", "delete")
470-
///
471-
/// # Examples
472-
///
473-
/// ```rust,ignore
474-
/// let _lock = FileLock::acquire(file_path, self.lock_timeout)
475-
/// .map_err(|e| Self::convert_lock_error(e, file_path, "save"))?;
476-
/// ```
477470
fn convert_lock_error(
478471
error: FileLockError,
479472
file_path: &Path,

0 commit comments

Comments
 (0)