Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Kubat
lektor
Validations
b5af3430
Non vérifiée
Valider
b5af3430
rédigé
Il y a 2 mois
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
MISC: Fix derive resolution for SHA264
parent
50090600
Branches
Branches contenant la validation
Aucune étiquette associée trouvée
2 requêtes de fusion
!205
misc debug and harderning, mostly related to repo syncing
,
!197
Draft: Refactor the whole code.
Modifications
1
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
kurisu_api/src/hash.rs
+3
-3
3 ajouts, 3 suppressions
kurisu_api/src/hash.rs
avec
3 ajouts
et
3 suppressions
kurisu_api/src/hash.rs
+
3
−
3
Voir le fichier @
b5af3430
//! Custom sha256 representation to be able to copy the damn thing and don't use stupid strings.
//! Custom sha256 representation to be able to copy the damn thing and don't use stupid strings.
use
derive_more
::{
Debug
,
Display
};
use
derive_more
::{
Debug
as
DmDebug
,
Display
as
Dm
Display
};
use
std
::{
borrow
::
Cow
,
fmt
,
str
::
FromStr
};
use
std
::{
borrow
::
Cow
,
fmt
,
str
::
FromStr
};
/// Represent a sha256 digest to try to avoid allocating strings everywhere.
/// Represent a sha256 digest to try to avoid allocating strings everywhere.
#[derive(Clone,
Copy,
PartialEq,
Eq,
Hash,
Display,
Debug)]
#[derive(Clone,
Copy,
PartialEq,
Eq,
Hash,
Dm
Display,
Dm
Debug)]
#[display(
"{:032x}{:032x}"
,
self
.
higher,
self
.
lower)]
#[display(
"{:032x}{:032x}"
,
self
.
higher,
self
.
lower)]
#[debug(
"{self}"
)]
#[debug(
"{self}"
)]
pub
struct
SHA256
{
pub
struct
SHA256
{
...
@@ -12,7 +12,7 @@ pub struct SHA256 {
...
@@ -12,7 +12,7 @@ pub struct SHA256 {
lower
:
u128
,
lower
:
u128
,
}
}
#[derive(Clone,
Display,
Debug)]
#[derive(Clone,
Dm
Display,
Dm
Debug)]
#[display(
"{_0}"
)]
#[display(
"{_0}"
)]
#[debug(
"{_0}"
)]
#[debug(
"{_0}"
)]
pub
struct
SHA256Error
(
Cow
<
'static
,
str
>
);
pub
struct
SHA256Error
(
Cow
<
'static
,
str
>
);
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter