diff options
Diffstat (limited to 'tvix/nix-compat-derive/src/de.rs')
-rw-r--r-- | tvix/nix-compat-derive/src/de.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tvix/nix-compat-derive/src/de.rs b/tvix/nix-compat-derive/src/de.rs index e678b50b0533..d9779713dfaa 100644 --- a/tvix/nix-compat-derive/src/de.rs +++ b/tvix/nix-compat-derive/src/de.rs @@ -58,12 +58,12 @@ fn nix_deserialize_impl( quote! { #[automatically_derived] - impl #impl_generics #crate_path::nix_daemon::de::NixDeserialize for #ty #ty_generics + impl #impl_generics #crate_path::wire::de::NixDeserialize for #ty #ty_generics #where_clause { #[allow(clippy::manual_async_fn)] fn try_deserialize<R>(reader: &mut R) -> impl ::std::future::Future<Output=Result<Option<Self>, R::Error>> + Send + '_ - where R: ?Sized + #crate_path::nix_daemon::de::NixRead + Send, + where R: ?Sized + #crate_path::wire::de::NixRead + Send, { #body } @@ -253,7 +253,7 @@ fn nix_deserialize_try_from(crate_path: &Path, ty: &Type) -> TokenStream { quote_spanned! { ty.span() => async move { - use #crate_path::nix_daemon::de::Error; + use #crate_path::wire::de::Error; if let Some(item) = reader.try_read_value::<#ty>().await? { <Self as ::std::convert::TryFrom<#ty>>::try_from(item) .map_err(Error::invalid_data) @@ -269,7 +269,7 @@ fn nix_deserialize_from_str(crate_path: &Path, span: Span) -> TokenStream { quote_spanned! { span => async move { - use #crate_path::nix_daemon::de::Error; + use #crate_path::wire::de::Error; if let Some(buf) = reader.try_read_bytes().await? { let s = ::std::str::from_utf8(&buf) .map_err(Error::invalid_data)?; |