Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error from seaorm-seaography example #180

Open
everdrone opened this issue Oct 29, 2024 · 0 comments
Open

Compilation error from seaorm-seaography example #180

everdrone opened this issue Oct 29, 2024 · 0 comments

Comments

@everdrone
Copy link

Steps to Reproduce

  1. Use the latest version of the dependencies found in this Cargo.toml
  2. cargo build
  3. this happens:
   Compiling seaography v1.1.0
error[E0599]: no method named `clone` found for enum `DatabaseConnection` in the current scope
   --> /Users/everdrone/.cargo/registry/src/index.crates.io-6f17d22bba15001f/seaography-1.1.0/src/builder.rs:177:54
    |
177 |             OneToOneLoader::<T>::new(self.connection.clone()),
    |                                                      ^^^^^
    |
help: there is a method `close` with a similar name
    |
177 |             OneToOneLoader::<T>::new(self.connection.close()),
    |                                                      ~~~~~

error[E0599]: no method named `clone` found for enum `DatabaseConnection` in the current scope
   --> /Users/everdrone.cargo/registry/src/index.crates.io-6f17d22bba15001f/seaography-1.1.0/src/builder.rs:193:55
    |
193 |             OneToManyLoader::<T>::new(self.connection.clone()),
    |                                                       ^^^^^
    |
help: there is a method `close` with a similar name
    |
193 |             OneToManyLoader::<T>::new(self.connection.close()),
    |                                                       ~~~~~

For more information about this error, try `rustc --explain E0599`.
error: could not compile `seaography` (lib) due to 2 previous errors

Expected Behavior

The binary compiles without issues

Actual Behavior

Compilation error from seaography

Versions

├── sea-orm v1.1.0
│   ├── sea-orm-macros v1.1.0 (proc-macro)
│   │   ├── sea-bae v0.2.1 (proc-macro)
│   ├── sea-query v0.32.0
│   ├── sea-query-binder v0.7.0
│   │   ├── sea-query v0.32.0 (*)
│   ├── sea-orm v1.1.0 (*)

database: postgresql:alpine (latest)
os: macOS 15.0.1

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

No branches or pull requests

1 participant