Skip to content

Commit

Permalink
Removed generation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbin committed Jun 27, 2024
1 parent 8185c70 commit e0a772a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion copper_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ pub fn copper_runtime(args: TokenStream, input: TokenStream) -> TokenStream {

println!("[build the collect metadata function]");
let culist_size = all_msgs_types_in_culist_order.len();
let culist_indices = 0..culist_size;
let culist_indices = (0..(culist_size as u32)).map(int2index);
let collect_metadata_function = quote! {
pub fn collect_metadata<'a>(culist: &'a CuList) -> [&'a _CuMsgMetadata; #culist_size] {
[#( &culist.#culist_indices.metadata, )*]
Expand Down
2 changes: 0 additions & 2 deletions examples/cu_caterpillar/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
pub mod tasks;

use copper::clock::ClockProvider;
use copper::clock::CuDuration;
use copper::clock::CuTime;
use copper_derive::copper_runtime;
use copper_helpers::basic_logger_runtime_setup;
use copper_log_derive::debug;
Expand Down

0 comments on commit e0a772a

Please sign in to comment.