move dead code tag to function defn rather than module

This commit is contained in:
yeastplume 2024-09-12 17:54:48 +00:00
parent 708d205a58
commit 30728b1c3e

View file

@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#![allow(dead_code)]
use self::chain::types::NoopAdapter;
use self::chain::types::Options;
@ -30,6 +29,7 @@ use grin_keychain as keychain;
use std::fs;
use std::sync::Arc;
#[allow(dead_code)]
#[cfg(test)]
pub fn clean_output_dir(dir_name: &str) {
let _ = fs::remove_dir_all(dir_name);