forked from Proxmox/proxmox
lang: deprecate ops::ControlFlow
as we now have rustc 1.55 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
4ccd6256a8
commit
af33a97547
@ -2,13 +2,16 @@
|
||||
|
||||
/// Modeled after the nightly `std::ops::ControlFlow`.
|
||||
///
|
||||
/// To be removed with rust 1.55.
|
||||
/// Will be removed with crate version 2.0.
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[deprecated(since = "1.1", note = "use std::ops::ControlFlow")]
|
||||
pub enum ControlFlow<B, C = ()> {
|
||||
Continue(C),
|
||||
Break(B),
|
||||
}
|
||||
|
||||
#[allow(deprecated)]
|
||||
impl<B> ControlFlow<B> {
|
||||
#[deprecated(since = "1.1", note = "use std::ops::ControlFlow")]
|
||||
pub const CONTINUE: ControlFlow<B, ()> = ControlFlow::Continue(());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user