From e6afaa68d0086a45d2a05233750b5dc03055210b Mon Sep 17 00:00:00 2001 From: Arto Bendiken Date: Mon, 29 Jul 2024 00:29:40 +0900 Subject: [PATCH] Alias the crate into the extern prelude. See: https://github.com/rust-lang/rust/issues/54647 See: https://github.com/rust-lang/rust/pull/55275 --- lib/protoflow/src/blocks/const.rs | 2 -- lib/protoflow/src/blocks/count.rs | 2 -- lib/protoflow/src/blocks/delay.rs | 2 -- lib/protoflow/src/blocks/drop.rs | 2 -- lib/protoflow/src/blocks/random.rs | 2 -- lib/protoflow/src/lib.rs | 2 ++ 6 files changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/protoflow/src/blocks/const.rs b/lib/protoflow/src/blocks/const.rs index f309706..8007d40 100644 --- a/lib/protoflow/src/blocks/const.rs +++ b/lib/protoflow/src/blocks/const.rs @@ -1,7 +1,5 @@ // This is free and unencumbered software released into the public domain. -use crate as protoflow; - use protoflow::derive::Block; use protoflow::{Block, BlockError, BlockRuntime, Message, OutputPort}; diff --git a/lib/protoflow/src/blocks/count.rs b/lib/protoflow/src/blocks/count.rs index e5a7274..d68dfb7 100644 --- a/lib/protoflow/src/blocks/count.rs +++ b/lib/protoflow/src/blocks/count.rs @@ -1,7 +1,5 @@ // This is free and unencumbered software released into the public domain. -use crate as protoflow; - use protoflow::derive::Block; use protoflow::{Block, BlockError, BlockRuntime, InputPort, Message, OutputPort, Port}; diff --git a/lib/protoflow/src/blocks/delay.rs b/lib/protoflow/src/blocks/delay.rs index 9e7844f..34b975a 100644 --- a/lib/protoflow/src/blocks/delay.rs +++ b/lib/protoflow/src/blocks/delay.rs @@ -1,7 +1,5 @@ // This is free and unencumbered software released into the public domain. -use crate as protoflow; - use protoflow::derive::Block; use protoflow::{ prelude::{Duration, Range}, diff --git a/lib/protoflow/src/blocks/drop.rs b/lib/protoflow/src/blocks/drop.rs index 5348a48..fab819c 100644 --- a/lib/protoflow/src/blocks/drop.rs +++ b/lib/protoflow/src/blocks/drop.rs @@ -1,7 +1,5 @@ // This is free and unencumbered software released into the public domain. -use crate as protoflow; - use protoflow::derive::Block; use protoflow::{Block, BlockError, BlockRuntime, InputPort, Message}; diff --git a/lib/protoflow/src/blocks/random.rs b/lib/protoflow/src/blocks/random.rs index 7c62485..d94209a 100644 --- a/lib/protoflow/src/blocks/random.rs +++ b/lib/protoflow/src/blocks/random.rs @@ -1,7 +1,5 @@ // This is free and unencumbered software released into the public domain. -use crate as protoflow; - use protoflow::derive::Block; use protoflow::{Block, BlockError, BlockRuntime, Message, OutputPort}; diff --git a/lib/protoflow/src/lib.rs b/lib/protoflow/src/lib.rs index 5d6b8e1..8888cda 100644 --- a/lib/protoflow/src/lib.rs +++ b/lib/protoflow/src/lib.rs @@ -2,6 +2,8 @@ #![no_std] +extern crate self as protoflow; + #[doc(hidden)] pub mod prelude;