From 6828beb9317e179ae7cd72a1cf5ca96f9375e264 Mon Sep 17 00:00:00 2001 From: 4rgon4ut Date: Fri, 1 Nov 2024 22:42:52 +0400 Subject: [PATCH] chore: fix build warn --- examples/overflow/guest/Cargo.toml | 4 ---- examples/overflow/guest/src/lib.rs | 1 - examples/overflow/guest/src/main.rs | 5 +++++ 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 examples/overflow/guest/src/main.rs diff --git a/examples/overflow/guest/Cargo.toml b/examples/overflow/guest/Cargo.toml index 889ed85c1..e4f831051 100644 --- a/examples/overflow/guest/Cargo.toml +++ b/examples/overflow/guest/Cargo.toml @@ -3,10 +3,6 @@ name = "overflow-guest" version = "0.1.0" edition = "2021" -[[bin]] -name = "guest" -path = "./src/lib.rs" - [features] guest = [] diff --git a/examples/overflow/guest/src/lib.rs b/examples/overflow/guest/src/lib.rs index 55334c61b..4c7811ec9 100644 --- a/examples/overflow/guest/src/lib.rs +++ b/examples/overflow/guest/src/lib.rs @@ -1,5 +1,4 @@ #![cfg_attr(feature = "guest", no_std)] -#![no_main] extern crate alloc; use alloc::vec; diff --git a/examples/overflow/guest/src/main.rs b/examples/overflow/guest/src/main.rs new file mode 100644 index 000000000..01eec91d6 --- /dev/null +++ b/examples/overflow/guest/src/main.rs @@ -0,0 +1,5 @@ +#![cfg_attr(feature = "guest", no_std)] +#![no_main] + +#[allow(unused_imports)] +use overflow_guest::*;