///
/// When [`scraper.method`](LibraryTomlFile::scraper) is `"none"`,
/// this field is not used and is conventionally set to "`-`".
- #[cfg(doc)] pub r_file_spec: String,
- #[cfg(not(doc))] pub r_file_spec: (),
+ pub r_file_spec: String,
/// Extra fields, normally not present.
pub extra_fields: HashMap<String, String>,
Ok::<_,LLE>(l.to_owned())
};
let item_spec = n()?;
- let _r_file_spec = n()?;
+ let r_file_spec = n()?;
let extra_fields = xfields.iter()
.map(|field| Ok::<_,LLE>((field.to_owned(), n()?.to_owned())))
.collect::<Result<_,_>>()?;
let desc = remain.to_owned();
- o.push(FileData{ item_spec, r_file_spec: (), extra_fields, desc });
+ o.push(FileData{ item_spec, r_file_spec, extra_fields, desc });
}
Ok(FileList(o))
}