From 2d18353083567f7f5935716daf6d16f030ee3189 Mon Sep 17 00:00:00 2001 From: baoyachi Date: Mon, 23 Aug 2021 10:02:53 +0800 Subject: [PATCH] make function hook pub --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e39c3cd..028e0a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shadow-rs" -version = "0.7.0" +version = "0.7.1" authors = ["baoyachi "] edition = "2018" description = "A build-time information stored in your rust project" diff --git a/src/lib.rs b/src/lib.rs index dd6e9f7..d8cc346 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -264,7 +264,7 @@ pub struct Shadow { } impl Shadow { - fn hook(&self, f: F) -> SdResult<()> + pub fn hook(&self, f: F) -> SdResult<()> where F: FnOnce(&File) -> SdResult<()>, {