1414[ license-badge ] : https://img.shields.io/crates/l/system_shutdown.svg
1515[ license-url ] : https://github.com/risoflora/system_shutdown#license
1616
17- ` system_shutdown ` provides a cross platform way to shut down, reboot or log out the system .
17+ ` system_shutdown ` provides a cross platform way to shut down, reboot or log out operations .
1818
1919Supported platforms: Linux, Windows and MacOS.
2020
@@ -28,22 +28,22 @@ extern crate system_shutdown;
2828use system_shutdown :: shutdown;
2929
3030fn main () {
31- match shutdown (true ) {
32- None => println! (" Shutting down, bye!" ),
33- Some ( code ) => println ! (" Failed to shut down. (Os code : {}) " , code ),
31+ match shutdown () {
32+ Ok ( _ ) => println! (" Shutting down, bye!" ),
33+ Err ( error ) => eprintln ! (" Failed to shut down: {}" , error ),
3434 }
3535}
3636```
3737
38- In most of the systems it does not require the user to be root/admin.
38+ In most of the systems it does not requires the user to be root/admin.
3939
4040## Usage
4141
4242Add this to your ` Cargo.toml ` :
4343
4444``` ini
4545[dependencies]
46- system_shutdown = " 2.1 .0"
46+ system_shutdown = " 3.0 .0"
4747```
4848
4949and this to your crate root:
@@ -54,7 +54,7 @@ extern crate system_shutdown;
5454
5555## Contributions
5656
57- Pull Requests and Issues welcome!
57+ Pull Requests and Issues are welcome!
5858
5959## License
6060
0 commit comments