From e144e26166f2928edcdf9344ba5ef7789c45f36a Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 4 May 2024 11:54:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dreplace=20name=E6=B2=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0name=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 2 +- miner/Cargo.toml | 2 +- miner/src/name.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d876000..f65f411 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1831,7 +1831,7 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "tswn" -version = "0.1.13" +version = "0.1.14" dependencies = [ "base16384", "chrono", diff --git a/miner/Cargo.toml b/miner/Cargo.toml index 9103c92..1b87714 100644 --- a/miner/Cargo.toml +++ b/miner/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tswn" description = "tool shenjack work shop namerena" -version = "0.1.13" +version = "0.1.14" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/miner/src/name.rs b/miner/src/name.rs index c4c1953..4ea0d0b 100644 --- a/miner/src/name.rs +++ b/miner/src/name.rs @@ -309,6 +309,7 @@ impl Namer { #[inline(always)] pub fn replace_name(&mut self, team_namer: &TeamNamer, name: &str) { self.val = team_namer.clone_vals(); + self.name = name.to_string(); let name_bytes = name.as_bytes(); let name_len = name_bytes.len();