@@ -112,6 +112,7 @@ impl<'a> Input<'a> {
112112 pub fn ordinary_file(path: impl AsRef<Path>) -> Self {
113113 Self::_ordinary_file(path.as_ref())
114114 }
115+
115116 fn _ordinary_file(path: &Path) -> Self {
116117 let kind = InputKind::OrdinaryFile(path.to_path_buf());
117118 Input {
@@ -143,10 +144,11 @@ impl<'a> Input<'a> {
143144 matches!(self.kind, InputKind::StdIn)
144145 }
145146
146− pub fn with_name(mut self, provided_name: Option<impl AsRef<Path>>) -> Self {
147+ pub fn with_name(self, provided_name: Option<impl AsRef<Path>>) -> Self {
147148 self._with_name(provided_name.as_ref().map(|it| it.as_ref()))
148149 }
149− pub fn _with_name(mut self, provided_name: Option<&Path>) -> Self {
150+
151+ fn _with_name(mut self, provided_name: Option<&Path>) -> Self {
150152 if let Some(name) = provided_name {
151153 self.description.name = name.to_string_lossy().to_string()
152154 }