refactor code to use Shrinkwraprs and diesel-derive-newtype #598

Fusionnée
igalic a fusionné 6 révision(s) à partir de refactor/shrinkwraps vers master il y a 5 ans
igalic a commenté il y a 5 ans (Migré de github.com)

Reduce a lot of our own boilerplate with these two crates.
This fixes #597.

Reduce a lot of our own boilerplate with these two crates. This fixes #597.
codecov[bot] a commenté il y a 5 ans (Migré de github.com)

Codecov Report

Merging #598 into master will increase coverage by 0.09%.
The diff coverage is 16.66%.

@@            Coverage Diff            @@
##           master    #598      +/-   ##
=========================================
+ Coverage    34.5%   34.6%   +0.09%     
=========================================
  Files          67      67              
  Lines        7876    7840      -36     
  Branches     1890    1883       -7     
=========================================
- Hits         2718    2713       -5     
+ Misses       4398    4367      -31     
  Partials      760     760
# [Codecov](https://codecov.io/gh/Plume-org/Plume/pull/598?src=pr&el=h1) Report > Merging [#598](https://codecov.io/gh/Plume-org/Plume/pull/598?src=pr&el=desc) into [master](https://codecov.io/gh/Plume-org/Plume/commit/59023e96023405847b3a91658e0adffecceb993d?src=pr&el=desc) will **increase** coverage by `0.09%`. > The diff coverage is `16.66%`. ```diff @@ Coverage Diff @@ ## master #598 +/- ## ========================================= + Coverage 34.5% 34.6% +0.09% ========================================= Files 67 67 Lines 7876 7840 -36 Branches 1890 1883 -7 ========================================= - Hits 2718 2713 -5 + Misses 4398 4367 -31 Partials 760 760 ```
elegaanz (Migré de github.com) révisé il y a 5 ans
@ -140,26 +140,12 @@ impl FromId<PlumeRocket> for Reshare {
let res = Reshare::insert(
&c.conn,
NewReshare {
elegaanz (Migré de github.com) a commenté il y a 5 ans

I think you can even replace this block with just &act.announce_props.object_link::<Id>()?, it was only here to be able to convert the Id to a String (and same for other similar blocks).

I think you can even replace this block with just `&act.announce_props.object_link::<Id>()?`, it was only here to be able to convert the Id to a String (and same for other similar blocks).
trinity-1686a ces changements ont été approuvés il y a 5 ans

Relecteurs

trinity-1686a ces changements ont été approuvés il y a 5 ans
La demande d'ajout a été fusionnée en 8c59c822b6.
Vous pouvez également voir les instructions en ligne de commande.

Étape 1:

Depuis le dépôt de votre projet, sélectionnez une nouvelle branche et testez les modifications.
git checkout -b refactor/shrinkwraps master
git pull origin refactor/shrinkwraps

Étape 2:

Fusionner les modifications et mettre à jour sur Forgejo.
git checkout master
git merge --no-ff refactor/shrinkwraps
git push origin master
Connectez-vous pour rejoindre cette conversation.
Aucune évaluation
Aucun jalon
Pas d'assignataires
2 participants
Notifications
Échéance
La date d’échéance est invalide ou hors plage. Veuillez utiliser le format 'aaaa-mm-dd'.

Aucune échéance n'a été définie.

Dépendances

No dependencies set.

Reference: Plume/Plume#598
Chargement…
Il n'existe pas encore de contenu.