10 lines
357 B
Python
10 lines
357 B
Python
import re
|
|
|
|
with open("server/src/search.rs", "r", encoding="utf-8") as f:
|
|
content = f.read()
|
|
|
|
content = content.replace("let writer = self.writer.lock().unwrap();\n writer.commit()?;", "let mut writer = self.writer.lock().unwrap();\n writer.commit()?;")
|
|
|
|
with open("server/src/search.rs", "w", encoding="utf-8") as f:
|
|
f.write(content)
|