MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / working_copy

Method working_copy

atomic-core/src/output/repo/error.rs:146–151  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 1

WorkingCopyInterface · 0.85

Tested by

no test coverage detected