build: remove unused anyhow dependency
This commit is contained in:
@@ -4,7 +4,6 @@ rust_library(
|
||||
name = "machoke_lib",
|
||||
crate_name = "machoke",
|
||||
srcs = ["lib.rs"],
|
||||
deps = ["//third_party/crates:anyhow"],
|
||||
)
|
||||
|
||||
rust_binary(
|
||||
|
||||
@@ -11,4 +11,3 @@ name = "machoke"
|
||||
path = "main.rs"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1"
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
use anyhow::Result;
|
||||
|
||||
pub fn greeting() -> Result<&'static str> {
|
||||
Ok("Hello from machoke")
|
||||
pub fn greeting() -> &'static str {
|
||||
"Hello from machoke"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
fn main() {
|
||||
println!(
|
||||
"{}",
|
||||
machoke::greeting().expect("greeting should be available")
|
||||
);
|
||||
println!("{}", machoke::greeting());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user