cmd/cloner: add Clone context to regen struct assignments

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
Josh Bleecher Snyder
2021-09-16 15:58:43 -07:00
committed by Josh Bleecher Snyder
parent 618376dbc0
commit d5ab18b2e6
7 changed files with 17 additions and 17 deletions

View File

@@ -31,7 +31,7 @@ func (src *Config) Clone() *Config {
}
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _ConfigNeedsRegeneration = Config(struct {
var _ConfigCloneNeedsRegeneration = Config(struct {
Name string
PrivateKey wgkey.Private
Addresses []netaddr.IPPrefix
@@ -53,7 +53,7 @@ func (src *Peer) Clone() *Peer {
}
// A compilation failure here means this code must be regenerated, with the command at the top of this file.
var _PeerNeedsRegeneration = Peer(struct {
var _PeerCloneNeedsRegeneration = Peer(struct {
PublicKey wgkey.Key
DiscoKey tailcfg.DiscoKey
AllowedIPs []netaddr.IPPrefix