chiark / gitweb /
Drop an unneeded lifetime argument
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Apr 2022 11:46:08 +0000 (12:46 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 30 Apr 2022 14:15:30 +0000 (15:15 +0100)
This is not needed.  (I'm not sure whether I did this because
ambassador didn't like the lifetime argument, or just because I saw it
in passing.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/gamestate.rs

index 0c67d77afe29f35b929106bc15001e9ee63b4ed0..8460504b7cea80db26f0d206172b4cf22dc5a780 100644 (file)
@@ -351,7 +351,7 @@ pub struct PieceLoadArgs<'a> {
 pub trait PieceSpec: Debug + Sync + Send + 'static {
   #[throws(SpecError)]
   fn count(&self, _pcaliases: &PieceAliases) -> usize { 1 }
-  fn load(&self, pla: PieceLoadArgs<'_>) -> Result<SpecLoaded, SpecError>;
+  fn load(&self, pla: PieceLoadArgs) -> Result<SpecLoaded, SpecError>;
   /// Used when a piece wants to use another for its occulted form
   fn load_inert(&self, _ig: &Instance, _:SpecDepth)
                 -> Result<SpecLoadedInert, SpecError> {