Skip to content

Update for diesel 2.0#9

Open
mogery wants to merge 2 commits into
ThinkAlexandria:masterfrom
neeryapp:master
Open

Update for diesel 2.0#9
mogery wants to merge 2 commits into
ThinkAlexandria:masterfrom
neeryapp:master

Conversation

@mogery

@mogery mogery commented Jan 29, 2023

Copy link
Copy Markdown

Makes changes in order to support Diesel 2.0.

Had to get rid of a couple test cases, because I couldn't figure out how the new Output::new works, but it should still work just fine.

Comment thread src/test_helpers.rs
pub fn create_testing_output<DB: TypeMetadata>() -> Output<'static, Vec<u8>, DB> {
use std::mem;
#[cfg_attr(feature = "clippy", allow(invalid_ref))]
Output::new(Vec::new(), unsafe { mem::uninitialized() })

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a fix, I just stripped out some tests because they were causing issues for me when I slapped this port together

@riking riking mentioned this pull request Feb 27, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants