Fix Clippy issues.
This commit is contained in:
parent
b0893af002
commit
0a03826fd2
|
@ -109,7 +109,7 @@ impl OPML {
|
||||||
|
|
||||||
// SPEC: The version attribute is a version string, of the form, x.y, where
|
// SPEC: The version attribute is a version string, of the form, x.y, where
|
||||||
// x and y are both numeric strings.
|
// 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()) {
|
if !valid_versions.contains(&opml.version.as_str()) {
|
||||||
return Err(Error::UnsupportedVersion(opml.version));
|
return Err(Error::UnsupportedVersion(opml.version));
|
||||||
|
|
|
@ -14,7 +14,7 @@ pub fn test_spec_samples() -> Result<(), Box<dyn Error>> {
|
||||||
];
|
];
|
||||||
|
|
||||||
for sample in samples {
|
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)?;
|
OPML::from_str(&sample_content)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue