chiark / gitweb /
remove redundant semicolons
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Jan 2021 22:14:21 +0000 (22:14 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Jan 2021 22:14:21 +0000 (22:14 +0000)
Updated nightly, new warning.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/cmdlistener.rs
src/bin/otter.rs
src/bin/otterlib.rs
src/global.rs
src/pieces.rs
src/shapelib.rs
src/spec.rs
src/updates.rs
zcoord/zcoord.rs

index 8af23885f7e29d26ecc4f8a095edb8e0c5e0809e..82339ad66cc9d2df94b420f14ab7ef5f1d68fd96 100644 (file)
@@ -1183,7 +1183,7 @@ fn do_authorise_scope(cs: &CommandStream, wanted: &AccountScope)
 
       let y : Authorisation<(Passwd,Uid,InUserList)> = {
 
-        struct AuthorisedIf { authorised_for : Option<Uid> };
+        struct AuthorisedIf { authorised_for : Option<Uid> }
 
         const SERVER_ONLY : (AuthorisedIf, Authorisation<InUserList>) = (
           AuthorisedIf { authorised_for: None },
index e802379eff0b064d576a116d60948b72d39a8dc0..d2d96ef620ffdff2383f879fec59d62df3cb173e 100644 (file)
@@ -261,7 +261,7 @@ fn main() {
     subcommand: String,
     subargs: Vec<String>,
     spec_dir: Option<String>,
-  };
+  }
   let (subcommand, subargs, mo) = parse_args::<RawMainArgs,_>(
     env::args().collect(),
   &|rma|{
@@ -1178,7 +1178,7 @@ mod library_add {
     enum Situation {
       Poor(Vec<MGI>, &'static str),
       Good([Pos; 2]),
-    };
+    }
     use Situation::*;
 
     const WANTED: usize = 2;
@@ -1220,7 +1220,7 @@ mod library_add {
     struct Placement {
       lhs: Coord, top: Coord, rhs: Coord, bot: Coord,
       clhs: Coord, cbot: Coord, // current line
-    };
+    }
 
     let mut placement = match situation {
       Poor(insns, msg) => {
index b981f8b11836790474ac385ef1c37ceadfef50bf..b6ba1e2356120a1f6549287180fecbdae2c34cfb 100644 (file)
@@ -74,7 +74,7 @@ fn preview(items: Vec<ItemForOutput>) {
     uos: Vec<String>,
     bbox: Vec<Vec<f64>>,
     size: Vec<f64>,
-  };
+  }
 
   const SEVERAL: usize = 3;
 
index 90cdd8be663b98ee2d5c3b1616e842aecc6d93f6..3606d63172af0203963ddeed6ccdd7383bc8108e 100644 (file)
@@ -419,7 +419,7 @@ impl Instance {
       player_num: u32,
       nick: &'r str,
       account: &'r AccountName,
-    };
+    }
     let players = self.gs.players.iter().filter_map(|(player, gpl)| {
       let ipl = self.iplayers.get(player)?;
       let (idx, _) = player.data().get_idx_version();
@@ -1129,7 +1129,7 @@ impl InstanceGuard<'_> {
 #[throws(anyhow::Error)]
 pub fn load_games(accounts: &mut AccountsGuard,
                   games: &mut GamesGuard) {
-  enum AFState { Found(PathBuf), Used };
+  enum AFState { Found(PathBuf), Used }
   use AFState::*;
   use SavefilenameParseResult::*;
   let mut a_leaves = HashMap::new();
index 456c855644705a74413700fdab0c7636669e8c8a..65c741d4f47b24cf34bbadfb5789a2a66109697d 100644 (file)
@@ -48,7 +48,7 @@ pub fn svg_rescale_path(input: &Html, scale: f64) -> Html {
     bits: BM,
     len: BI,
     index: BI,
-  };
+  }
   impl RotatingBitmap {
     const fn new(bits: BM, len: BI) -> Self { Self{ bits, len, index:0 } }
     fn reset(&mut self) { self.index= 0; }
index be5a37dc5624d9ffd226e86bcbfd78a05d6d04c4..8390dea6dadac9ea23019c160fa9402a30137a2c 100644 (file)
@@ -458,7 +458,7 @@ impl Config1 {
             dirname: dirname.to_string(),
             catalogue: path,
           }
-        };
+        }
 
         let results = glob::glob_with(pat, glob::MatchOptions {
           require_literal_separator: true,
index 5d87b36194755d062b3a2c90d5b4a3c3e6957563..b830c03e64ee9e7e08bdef454bfa030c36410152 100644 (file)
@@ -468,7 +468,7 @@ pub mod implementation {
         game_name: String,
         nick: &'r str,
         token_lines: Vec<String>,
-      };
+      }
       let common = CommonData {
         player_email: &self.addr,
         game_name: g.name.to_string(),
@@ -489,7 +489,7 @@ pub mod implementation {
             unix_user: &'r str,
             #[serde(flatten)]
             common: CommonData<'r>,
-          };
+          }
           let data = Data {
             unix_user: user,
             common,
@@ -503,7 +503,7 @@ pub mod implementation {
             account: String,
             #[serde(flatten)]
             common: CommonData<'r>,
-          };
+          }
           let data = Data {
             account: account.to_string(),
             common,
index 3a57be279fba1dc5ca7c4545c328309dc2c971c4..26118a848f928e07d3931e21e045a5473c26ae10 100644 (file)
@@ -523,7 +523,7 @@ impl PreparedUpdate {
             Recorded(ClientSequence, Option<&'u PreparedPieceState>),
             Exactly(TransmitUpdateEntry<'u>),
             Piece,
-          };
+          }
           let ftg = match by_client {
             None                                     => FTG::Piece,
             Some((_,u_client,_)) if u_client != dest => FTG::Piece,
index abb78ebb21eefadbf6ca44c794023f2231a9797c..54e4ce46aefad287ecaa3fb355c63d497c430bd2 100644 (file)
@@ -897,7 +897,7 @@ mod test {
       let last = a.as_ref().map(|m| m.repack().unwrap());
       let i = Mutable::some_range(a.as_ref(), b.as_ref(), count)?;
       It { i, last }
-    };
+    }
     impl It {
       fn nxt(&mut self, exp: Option<&str>) {
         let got = self.i.next();