Skip to content

Commit 8800e87

Browse files
committed
bump version number from 0.5.8 to 0.8.9
1 parent 8ea1acb commit 8800e87

File tree

5 files changed

+23
-9
lines changed

5 files changed

+23
-9
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "macchina"
3-
version = "0.5.8"
3+
version = "0.5.9"
44
authors = ["grtcdr <[email protected]>", "Marvin Haschker <[email protected]>"]
55
edition = "2018"
66
description = "System information fetcher"

macchina-read/Cargo.lock

Lines changed: 17 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

macchina-read/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "macchina-read"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
authors = ["grtcdr <[email protected]>", "Marvin Haschker <[email protected]>"]
55
edition = "2018"
66
description = "Provides the fetching capabilities for Macchina."
@@ -16,8 +16,6 @@ windows = "0.4.0"
1616

1717
[target.'cfg(any(target_os = "linux", target_os = "netbsd"))'.dependencies]
1818
nix = "0.20.0"
19-
20-
[target.'cfg(target_os = "linux")'.dependencies]
2119
os-release = "0.1"
2220

2321
[target.'cfg(target_os = "macos")'.dependencies]

macchina-read/src/shared/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub(crate) fn uptime() -> Result<String, ReadoutError> {
2828
.to_string())
2929
}
3030

31-
/// Read distribution name from `/etc/os-release`
31+
/// This function should return the distribution name, e.g. "Arch Linux"
3232
#[cfg(any(target_os = "linux", target_os = "netbsd"))]
3333
pub(crate) fn distribution() -> Result<String, ReadoutError> {
3434
use os_release::OsRelease;
@@ -65,7 +65,7 @@ pub(crate) fn desktop_environment() -> Result<String, ReadoutError> {
6565
}
6666
}
6767

68-
/// Similar to how basename works
68+
/// This function should return the basename of the path to a program
6969
#[cfg(any(target_os = "linux", target_os = "netbsd"))]
7070
fn format_desktop_environment(mut session_name: String) -> String {
7171
let last_occurence_index = session_name.rfind('/').unwrap() + 1;

0 commit comments

Comments
 (0)