-
Notifications
You must be signed in to change notification settings - Fork 4
dumps v2 #191
Conversation
@@ -87,6 +87,28 @@ impl Settings<Checked> { | |||
_kind: PhantomData, | |||
} | |||
} | |||
|
|||
pub fn into_unchecked(self) -> Settings<Unchecked> { | |||
let Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wtf is this syntax 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was the least amount of effort for me and my vim 😆
macro_rules! internal_error { | ||
($($other:path), *) => { | ||
$( | ||
impl From<$other> for UuidResolverError { | ||
fn from(other: $other) -> Self { | ||
Self::Internal(other.to_string()) | ||
} | ||
} | ||
)* | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we copy-paste this code in every actor instead of defining once for everyone and call it everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because it's a bit of a workaround for now, it gets things done until I work on error handling
Co-authored-by: Irevoire <tamo@meilisearch.com>
bors try |
bors merge |
tryBuild succeeded: |
Build succeeded: |
No description provided.