Skip to content

Commit 4d397ca

Browse files
refactor: rename 'script' parameters to 'path' in file loading functions
1 parent 057d988 commit 4d397ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/ports/rs_port/src/load.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ use std::{
1616
/// ```
1717
pub fn from_single_file(
1818
tag: impl ToString,
19-
script: impl AsRef<Path>,
19+
path: impl AsRef<Path>,
2020
) -> Result<(), MetaCallLoaderError> {
21-
from_file(tag, [script])
21+
from_file(tag, [path])
2222
}
2323
/// Loads a script from file. Usage example: ...
2424
/// ```
@@ -27,14 +27,14 @@ pub fn from_single_file(
2727
/// ```
2828
pub fn from_file(
2929
tag: impl ToString,
30-
scripts: impl IntoIterator<Item = impl AsRef<Path>>,
30+
paths: impl IntoIterator<Item = impl AsRef<Path>>,
3131
) -> Result<(), MetaCallLoaderError> {
3232
let c_tag = cstring_enum!(tag, MetaCallLoaderError)?;
3333
let mut c_script: CString;
3434

3535
let mut new_scripts: Vec<*const i8> = Vec::new();
36-
for script in scripts.into_iter() {
37-
let script_as_pathbuf = PathBuf::from(script.as_ref());
36+
for path in paths.into_iter() {
37+
let script_as_pathbuf = PathBuf::from(path.as_ref());
3838
let script_as_str = script_as_pathbuf.to_str().unwrap();
3939

4040
if !script_as_pathbuf.exists() {

0 commit comments

Comments
 (0)