From: Ian Jackson Date: Fri, 2 Apr 2021 16:54:20 +0000 (+0100) Subject: updates: Move PUE_P alias into prelude X-Git-Tag: otter-0.5.0~308 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2e83e530f8d2fd9f16aa8743fc10b5163b482653;p=otter.git updates: Move PUE_P alias into prelude Signed-off-by: Ian Jackson --- diff --git a/src/global.rs b/src/global.rs index 7d0c74cc..c848bf50 100644 --- a/src/global.rs +++ b/src/global.rs @@ -9,8 +9,6 @@ use crate::prelude::*; use slotmap::dense as sm; use std::sync::PoisonError; -#[allow(non_camel_case_types)] type PUE_P = PreparedUpdateEntry_Piece; - // ---------- newtypes and type aliases ---------- visible_slotmap_key!{ ClientId(b'C') } diff --git a/src/prelude.rs b/src/prelude.rs index d9a13edd..caeeaf04 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -188,3 +188,4 @@ pub type PUFOS = PieceUpdateFromOpSimple; pub type PUO = PieceUpdateOp; pub type PUOs = PieceUpdateOps; pub type WRC = WhatResponseToClientOp; +#[allow(non_camel_case_types)] pub type PUE_P = PreparedUpdateEntry_Piece; diff --git a/src/updates.rs b/src/updates.rs index 0e8a97cf..289ff5a2 100644 --- a/src/updates.rs +++ b/src/updates.rs @@ -6,7 +6,6 @@ use crate::prelude::*; -#[allow(non_camel_case_types)] type PUE_P = PreparedUpdateEntry_Piece; #[allow(non_camel_case_types)] type TUE_P<'u> = TransmitUpdateEntry_Piece<'u>; #[allow(non_camel_case_types)] type PUE_I = PreparedUpdateEntry_Image; #[allow(non_camel_case_types)] type TUE_I<'u> = TransmitUpdateEntry_Image<'u>;