We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bf9386 commit dbae3f5Copy full SHA for dbae3f5
src/ownership.rs
@@ -33,7 +33,7 @@ use self::{
33
pub struct Ownership {
34
project: Arc<Project>,
35
}
36
-
+#[derive(Debug)]
37
pub struct FileOwner {
38
pub team: Team,
39
pub team_config_file_path: String,
src/project.rs
@@ -178,9 +178,7 @@ impl Project {
178
179
180
pub fn relative_path<'a>(&'a self, absolute_path: &'a Path) -> &'a Path {
181
- absolute_path
182
- .strip_prefix(&self.base_path)
183
- .expect("Could not generate relative path")
+ absolute_path.strip_prefix(&self.base_path).unwrap_or(absolute_path)
184
185
186
pub fn get_team(&self, name: &str) -> Option<Team> {
0 commit comments