Skip to content

Commit 61cfed3

Browse files
committed
Finish removing a workaround for an old Rust version
Since we removed the conditional handling of `Option`, we need to use the real type, not the inner type.
1 parent bac1af7 commit 61cfed3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

diesel_derives/src/associations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn derive_belongs_to(
4343
let foreign_key_field = model.find_column(&foreign_key)?;
4444
let struct_name = &model.name;
4545
let foreign_key_access = foreign_key_field.name.access();
46-
let foreign_key_ty = inner_of_option_ty(&foreign_key_field.ty);
46+
let foreign_key_ty = &foreign_key_field.ty;
4747
let table_name = model.table_name();
4848

4949
let mut generics = generics.clone();

0 commit comments

Comments
 (0)