diff --git a/nixide-sys/Cargo.toml b/nixide-sys/Cargo.toml index f1f98e6..41a1b93 100644 --- a/nixide-sys/Cargo.toml +++ b/nixide-sys/Cargo.toml @@ -15,7 +15,6 @@ targets = [ "x86_64-unknown-linux-gnu" ] [lib] path = "src/lib.rs" -# crate-type = ["dylib"] # build libnixide_sys.so # NOTE: `[features]` have a 1-1 correspondence to the # NOTE: shared libraries produced by the Nix C API. diff --git a/nixide/src/version.rs b/nixide/src/version.rs index dfe8890..568d658 100644 --- a/nixide/src/version.rs +++ b/nixide/src/version.rs @@ -45,7 +45,7 @@ impl NixVersion { /// /// # Examples /// - /// ``` + /// ```rs /// use nixide::NixVersion; /// /// assert_eq!(NixVersion::parse("2.26"), Ok(NixVersion::new(2, 26, 0, false))); @@ -72,7 +72,7 @@ impl NixVersion { s[..offset].parse::()?, // patch length > 3 && s.ends_with("pre"), // is_prerelease ) - } + }, None => (0, false), };