Skip to content

mockable v3.0.0 upgrade blocked by compilation errors #53

Description

@coderabbitai

Problem

The upgrade of mockable from version 0.1.4 to 3.0.0 is currently blocked due to compilation errors and lint warnings.

Errors Encountered

1. Renamed Lint Warning

warning: lint `missing_crate_level_docs` has been renamed to `rustdoc::missing_crate_level_docs`
  |
  = help: use the new name `rustdoc::missing_crate_level_docs`
  = note: requested on the command line with `-D missing_crate_level_docs`

2. Missing new() Function

error[E0599]: no function or associated item named `new` found for struct `mockable::DefaultEnv` in the current scope
  --> src/main.rs:134:37
    |
134 |     let env = mockable::DefaultEnv::new();
    |                                     ^^^ function or associated item not found in `DefaultEnv`

The error suggests that the new() function is no longer available on mockable::DefaultEnv in version 3.0.0, indicating a breaking API change.

Related

Action Required

Investigate the mockable v3.0.0 API changes and update the codebase accordingly, particularly:

  1. Update lint configuration to use rustdoc::missing_crate_level_docs
  2. Update usage of mockable::DefaultEnv to match the new API

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions