chiark / gitweb /
updates: Move PUE_P alias into prelude
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Apr 2021 16:54:20 +0000 (17:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 2 Apr 2021 19:15:32 +0000 (20:15 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/global.rs
src/prelude.rs
src/updates.rs

index 7d0c74ccc8ca4e5ccd2807d40dcbdaa31be008cb..c848bf50f94fe1b3967cc9d05ec6d4667b994269 100644 (file)
@@ -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') }
index d9a13edd5003db0a3f70a686f05f1176b1f3974b..caeeaf04d52119ce02514ca9e14f7da27a3f4206 100644 (file)
@@ -188,3 +188,4 @@ pub type PUFOS = PieceUpdateFromOpSimple;
 pub type PUO<NS,ZL> = PieceUpdateOp<NS,ZL>;
 pub type PUOs = PieceUpdateOps;
 pub type WRC = WhatResponseToClientOp;
+#[allow(non_camel_case_types)] pub type PUE_P = PreparedUpdateEntry_Piece;
index 0e8a97cfe057821593adf42cc981e289717a34fb..289ff5a2a45c2399d7ceb4d0f59e0970a81381fe 100644 (file)
@@ -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>;