From: Ian Jackson Date: Sat, 15 May 2021 22:55:19 +0000 (+0100) Subject: shapelib: Put *EnquiryData in the prelude X-Git-Tag: otter-0.6.0~247 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=90db28a5fc90177c062b18be75e2c817838ca40a;p=otter.git shapelib: Put *EnquiryData in the prelude Signed-off-by: Ian Jackson --- diff --git a/daemon/cmdlistener.rs b/daemon/cmdlistener.rs index 9b354037..0aa83bd4 100644 --- a/daemon/cmdlistener.rs +++ b/daemon/cmdlistener.rs @@ -362,7 +362,7 @@ fn execute_and_respond(cs: &mut CommandStreamData, cmd: MgmtCommand, .map(|ll| ll.iter()) .flatten() .map(|l| l.enquiry()) - .collect::>() + .collect::>() ) )?; MR::Libraries(libs) @@ -375,7 +375,7 @@ fn execute_and_respond(cs: &mut CommandStreamData, cmd: MgmtCommand, cs,&ag,&gref, &[TP::UploadBundles], &mut |ig, _| { let regs = ig.all_shapelibs(); - let mut results: Vec = default(); + let mut results: Vec = default(); let libss = if let Some(lib) = &lib { vec![regs.lib_name_lookup(lib)?] } else { diff --git a/src/commands.rs b/src/commands.rs index 38d5a17e..c00f870d 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -94,8 +94,8 @@ pub enum MgmtResponse { AlterGame { error: Option, responses: Vec }, AccountsList(Vec>), GamesList(Vec>), - Libraries(Vec), - LibraryItems(Vec), + Libraries(Vec), + LibraryItems(Vec), Bundles { bundles: MgmtBundleList }, } diff --git a/src/mgmtchannel.rs b/src/mgmtchannel.rs index be4547f9..cd20b9dd 100644 --- a/src/mgmtchannel.rs +++ b/src/mgmtchannel.rs @@ -213,7 +213,7 @@ impl MgmtChannelForGame { #[throws(AE)] pub fn list_items(&mut self, lib: Option, pat: String) - -> Vec { + -> Vec { // xxx allow globbing of library names let cmd = MgmtCommand::LibraryListByGlob { game: self.game.clone(), diff --git a/src/prelude.rs b/src/prelude.rs index bffec21d..6b2371a6 100644 --- a/src/prelude.rs +++ b/src/prelude.rs @@ -152,7 +152,9 @@ pub use crate::pcrender::*; pub use crate::pieces::*; pub use crate::progress::{self, ProgressInfo, OriginatorExt as _}; pub use crate::shapelib; -pub use crate::shapelib::{CircleShape, RectShape, LibraryLoadError}; +pub use crate::shapelib::{CircleShape, RectShape}; +pub use crate::shapelib::{ItemEnquiryData, LibraryEnquiryData}; +pub use crate::shapelib::{LibraryLoadError}; pub use crate::slotmap_slot_idx::*; pub use crate::spec::*; pub use crate::spec::piece_specs::{FaceColourSpecs, SimpleCommon};