Skip to content

Commit

Permalink
Merge pull request #312 from Ynscription/accessPathFromRun
Browse files Browse the repository at this point in the history
Added get_path method to Run so the path can be actually accessed.
  • Loading branch information
CryZe authored Mar 12, 2020
2 parents 3306e86 + 348b085 commit 1027a92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/run/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ impl Run {
self.category_name.push_str(name.as_ref());
}

/// Returns the path of the associated splits file in the file system.
#[inline]
pub fn path(&mut self) -> &Option<PathBuf> {
&self.path
}

/// Sets the path of the associated splits file in the file system.
#[inline]
pub fn set_path(&mut self, path: Option<PathBuf>) {
Expand Down

0 comments on commit 1027a92

Please sign in to comment.