chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dacd0eb
)
a todo list item
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 23 Nov 2020 20:24:29 +0000
(20:24 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 23 Nov 2020 20:24:29 +0000
(20:24 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/global.rs
patch
|
blob
|
history
diff --git
a/src/global.rs
b/src/global.rs
index ce1ba7943d29d39fef95da627e819c7c0b52cc73..935c458ba53105edd1e1158d77a0dc650ae5a556 100644
(file)
--- a/
src/global.rs
+++ b/
src/global.rs
@@
-461,7
+461,8
@@
impl<'ig> InstanceGuard<'ig> {
/// proves the caller has a log entry.
#[throws(MgmtError)]
pub fn player_new(&mut self, gnew: GPlayerState, inew: IPlayerState,
- logentry: LogEntry) -> (PlayerId, LogEntry) {
+ logentry: LogEntry)
+ -> (PlayerId, /* todo some game update,*/ LogEntry) {
// saving is fallible, but we can't attempt to save unless
// we have a thing to serialise with the player in it
self.check_new_nick(&gnew.nick)?;