Create a working copy error. # Arguments `err` - The underlying error from the working copy # Example ```rust use atomic_core::output::repo::OutputError; let err = OutputError::working_copy(std::io::Error::new( std::io::ErrorKind::NotFound, "file not found" )); assert!(err.to_string().contains("Working copy")); ```
(err: E)
| 144 | /// assert!(err.to_string().contains("Working copy")); |
| 145 | /// ``` |
| 146 | pub fn working_copy<E>(err: E) -> Self |
| 147 | where |
| 148 | E: std::error::Error + Send + Sync + 'static, |
| 149 | { |
| 150 | Self::WorkingCopy(Box::new(err)) |
| 151 | } |
| 152 | |
| 153 | /// Create a change store error. |
| 154 | /// |
nothing calls this directly
no test coverage detected