Skip to content

Commit

Permalink
Merge pull request #168 from rustaceanrob/pathbuf-10-18
Browse files Browse the repository at this point in the history
Robustness w.r.t `PathBuf` type
  • Loading branch information
rustaceanrob authored Oct 18, 2024
2 parents 1b782fd + 4ba1e10 commit db5f74f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ impl NodeBuilder {

/// Add a path to the directory where data should be stored. If none is provided, the current
/// working directory will be used.
pub fn add_data_dir(mut self, path: PathBuf) -> Self {
self.config.data_path = Some(path);
pub fn add_data_dir(mut self, path: impl Into<PathBuf>) -> Self {
self.config.data_path = Some(path.into());
self
}

Expand Down

0 comments on commit db5f74f

Please sign in to comment.