Make method name more explicit

This commit is contained in:
Hanno Braun 2022-03-16 14:15:09 +01:00
parent f58dd35ef6
commit bf5c31f463
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ fn main() -> anyhow::Result<()> {
let args = Args::parse();
let config = Config::load()?;
let model = Model::new(
let model = Model::from_path(
config.default_path,
args.model.unwrap_or(config.default_model),
);

View File

@ -12,7 +12,7 @@ pub struct 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;
path.push(rel_path);