(bytes: Vec<u8>)
| 36 | |
| 37 | impl RepoPath { |
| 38 | pub fn new(bytes: Vec<u8>) -> Result<Self, ProjectTreeError> { |
| 39 | validate_repo_path(&bytes)?; |
| 40 | Ok(Self(bytes)) |
| 41 | } |
| 42 | |
| 43 | pub fn from_bytes(bytes: &[u8]) -> Result<Self, ProjectTreeError> { |
| 44 | Self::new(bytes.to_vec()) |
nothing calls this directly
no test coverage detected