We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a37b9cf commit 894467fCopy full SHA for 894467f
src/file/mod.rs
@@ -67,11 +67,11 @@ where
67
impl File<FileSourceFile, FileFormat> {
68
/// Given the basename of a file, will attempt to locate a file by setting its
69
/// extension to a registered format.
70
- pub fn with_name(name: &str) -> Self {
+ pub fn with_name(base_name: &str) -> Self {
71
Self {
72
format: None,
73
required: true,
74
- source: FileSourceFile::new(name.into()),
+ source: FileSourceFile::new(base_name.into()),
75
}
76
77
0 commit comments