From 2e83e530f8d2fd9f16aa8743fc10b5163b482653 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 2 Apr 2021 17:54:20 +0100 Subject: [PATCH] updates: Move PUE_P alias into prelude Signed-off-by: Ian Jackson --- src/global.rs | 2 -- src/prelude.rs | 1 + src/updates.rs | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) 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>; -- 2.30.2