forked from Cutieguwu/raven
Resolve some pathing issues; cleanup.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use std::fs::{File, OpenOptions};
|
||||
use std::io::Read;
|
||||
use std::path::PathBuf;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
@@ -28,6 +28,11 @@ impl Prey {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn with_entry_point<P: AsRef<Path>>(&mut self, entry_point: P) -> &mut Self {
|
||||
self.package.entry_point = entry_point.as_ref().to_path_buf();
|
||||
self
|
||||
}
|
||||
|
||||
pub fn entry_point(&self) -> PathBuf {
|
||||
self.package.entry_point.clone()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user