export feature
This commit is contained in:
@@ -83,7 +83,9 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn config_roundtrip() {
|
||||
let config = Config { api_url: "http://localhost:3000".into() };
|
||||
let config = Config {
|
||||
api_url: "http://localhost:3000".into(),
|
||||
};
|
||||
let json = serde_json::to_string(&config).unwrap();
|
||||
let decoded: Config = serde_json::from_str(&json).unwrap();
|
||||
assert_eq!(decoded.api_url, "http://localhost:3000");
|
||||
|
||||
Reference in New Issue
Block a user