diff --git a/crates/config-source/src/lib.rs b/crates/config-source/src/lib.rs index 40bbac62..0adc87e4 100644 --- a/crates/config-source/src/lib.rs +++ b/crates/config-source/src/lib.rs @@ -24,7 +24,6 @@ pub const MAX_TOTAL_BYTES: usize = 4 * 1024 * 1024; pub const MAX_PATH_BYTES: usize = 512; #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize, ts_rs::TS)] -#[serde(transparent)] pub struct VirtualPath(String); impl VirtualPath { @@ -1791,6 +1790,19 @@ mod tests { assert_eq!(path("profiles/main.dcdl").as_str(), "profiles/main.dcdl"); } + #[test] + fn virtual_path_serde_shape_is_a_string() { + let path = path("profiles/main.dcdl"); + assert_eq!( + serde_json::to_value(&path).unwrap(), + serde_json::json!(path.as_str()) + ); + assert_eq!( + serde_json::from_value::(serde_json::json!(path.as_str())).unwrap(), + path + ); + } + #[test] fn candidate_changes_are_atomic_ordered_and_conflict_checked() { let base = ConfigTreeSnapshot::from_entries( diff --git a/crates/workspace-server/src/server.rs b/crates/workspace-server/src/server.rs index 75206cb5..ca162ab3 100644 --- a/crates/workspace-server/src/server.rs +++ b/crates/workspace-server/src/server.rs @@ -7960,11 +7960,6 @@ struct PasskeyLoginCompleteRequest { credential: PublicKeyCredential, } -#[derive(Debug, Serialize, Deserialize)] -struct PasskeyLoginCompleteResponse { - user: AuthenticatedUser, -} - #[derive(Debug, Deserialize)] #[serde(deny_unknown_fields)] struct DeviceLoginStartRequest {