mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-27 01:25:52 +00:00
Make method name more explicit
This commit is contained in:
parent
f58dd35ef6
commit
bf5c31f463
@ -53,7 +53,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
|
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
let config = Config::load()?;
|
let config = Config::load()?;
|
||||||
let model = Model::new(
|
let model = Model::from_path(
|
||||||
config.default_path,
|
config.default_path,
|
||||||
args.model.unwrap_or(config.default_model),
|
args.model.unwrap_or(config.default_model),
|
||||||
);
|
);
|
||||||
|
@ -12,7 +12,7 @@ pub struct Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Model {
|
impl Model {
|
||||||
pub fn new(base_path: PathBuf, rel_path: PathBuf) -> Self {
|
pub fn from_path(base_path: PathBuf, rel_path: PathBuf) -> Self {
|
||||||
let mut path = base_path;
|
let mut path = base_path;
|
||||||
path.push(rel_path);
|
path.push(rel_path);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user