This commit is contained in:
vms 2021-03-15 14:40:44 +03:00
parent 90850764ca
commit ab76621355

View File

@ -141,6 +141,7 @@ pub struct Interfaces<'input> {
}
impl Interfaces<'_> {
/// Creates a new Interfaces where version comes from this package version.
pub fn new() -> Self {
use std::str::FromStr;
@ -157,6 +158,7 @@ impl Interfaces<'_> {
}
}
/// Creates a new Interfaces from the provided version.
pub fn from_version(version: semver::Version) -> Self {
Self {
version,