ruaaaa
This commit is contained in:
parent
7a17a70014
commit
eec9340434
@ -16,7 +16,7 @@ pub type IdType = i64;
|
||||
|
||||
#[pyfunction]
|
||||
fn get_version_str() -> String {
|
||||
"0.3.1".to_string()
|
||||
env!("CARGO_PKG_VERSION").to_string()
|
||||
}
|
||||
|
||||
#[pyfunction]
|
||||
|
@ -242,7 +242,7 @@ impl RawShip {
|
||||
pub fn from_file(path: String) -> Option<RawShip> {
|
||||
let ship_file = fs::read_to_string(path); // for encoding error
|
||||
if let Err(e) = ship_file {
|
||||
println!("ERROR!\n{:?}\n----------", e);
|
||||
println!("ERROR!\n{}\n----------", e);
|
||||
return None;
|
||||
}
|
||||
let ship_file = ship_file.unwrap();
|
||||
@ -250,7 +250,7 @@ impl RawShip {
|
||||
match ship {
|
||||
Ok(ship) => Some(ship),
|
||||
Err(e) => {
|
||||
println!("ERROR!\n{} {}\n----------", e, e.source());
|
||||
println!("ERROR!\n{}", e);
|
||||
None
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ from Difficult_Rocket.api.types import Options, Version
|
||||
|
||||
from lib_not_dr import loggers
|
||||
|
||||
DR_rust_version = Version("0.3.1") # DR_mod 的 Rust 编写部分的兼容版本
|
||||
DR_rust_version = Version("0.3.2") # DR_mod 的 Rust 编写部分的兼容版本
|
||||
|
||||
logger = loggers.config.get_logger_from_old("client.dr_game", "client")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user