Fix Clippy issues.

This commit is contained in:
Bauke 2024-01-21 13:44:26 +01:00
parent b0893af002
commit 0a03826fd2
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ impl OPML {
// SPEC: The version attribute is a version string, of the form, x.y, where
// x and y are both numeric strings.
let valid_versions = vec!["1.0", "1.1", "2.0"];
let valid_versions = ["1.0", "1.1", "2.0"];
if !valid_versions.contains(&opml.version.as_str()) {
return Err(Error::UnsupportedVersion(opml.version));

View File

@ -14,7 +14,7 @@ pub fn test_spec_samples() -> Result<(), Box<dyn Error>> {
];
for sample in samples {
let sample_content = fs::read_to_string(&sample)?;
let sample_content = fs::read_to_string(sample)?;
OPML::from_str(&sample_content)?;
}