@@ -613,7 +613,10 @@ impl crate::models::CreateBatch<DocumentChangeset> for Document {
613
613
async fn create_batch<
614
614
I: std::iter::IntoIterator<Item = DocumentChangeset> + Send + 'async_trait,
615
615
C: Default + std::iter::Extend<Self> + Send + std::fmt::Debug,
616
- >(conn: &mut editoast_models::DbConnection, values: I) -> crate::error::Result<C> {
616
+ >(
617
+ conn: &mut editoast_models::DbConnection,
618
+ values: I,
619
+ ) -> std::result::Result<C, editoast_models::model::Error> {
617
620
use crate::models::Model;
618
621
use editoast_models::tables::osrd_infra_document::dsl;
619
622
use std::ops::DerefMut;
@@ -654,7 +657,10 @@ impl crate::models::CreateBatchWithKey<DocumentChangeset, (String)> for Document
654
657
async fn create_batch_with_key<
655
658
I: std::iter::IntoIterator<Item = DocumentChangeset> + Send + 'async_trait,
656
659
C: Default + std::iter::Extend<((String), Self)> + Send + std::fmt::Debug,
657
- >(conn: &mut editoast_models::DbConnection, values: I) -> crate::error::Result<C> {
660
+ >(
661
+ conn: &mut editoast_models::DbConnection,
662
+ values: I,
663
+ ) -> std::result::Result<C, editoast_models::model::Error> {
658
664
use crate::models::Identifiable;
659
665
use crate::models::Model;
660
666
use std::ops::DerefMut;
@@ -698,7 +704,10 @@ impl crate::models::CreateBatchWithKey<DocumentChangeset, (i64)> for Document {
698
704
async fn create_batch_with_key<
699
705
I: std::iter::IntoIterator<Item = DocumentChangeset> + Send + 'async_trait,
700
706
C: Default + std::iter::Extend<((i64), Self)> + Send + std::fmt::Debug,
701
- >(conn: &mut editoast_models::DbConnection, values: I) -> crate::error::Result<C> {
707
+ >(
708
+ conn: &mut editoast_models::DbConnection,
709
+ values: I,
710
+ ) -> std::result::Result<C, editoast_models::model::Error> {
702
711
use crate::models::Identifiable;
703
712
use crate::models::Model;
704
713
use std::ops::DerefMut;
0 commit comments