Skip to content

Context::default() function or associated item not found in Context #776

Closed
@1oglop1

Description

@1oglop1

Hi, I've been using 0.8.1 and after updating to 0.9.0 I can no longer run tests.

src/main.rs:86:36
   |
86 |         let mut context = Context::default();
   |                                    ^^^^^^^ function or associated item not found in `Context`

Although readme and examples still show Context::default(). Has that been removed on purpose?

I replicated the issue on this project as well https://github.com/awslabs/aws-lambda-rust-runtime/tree/main/examples/basic-sdk/src

Tried it on the

  • current master - did not work
  • on tag lambda-runtime-0.8.1 - worked as expected, can confirm this still works in 0.8.3

This seems to be a root issue:

53637e7#diff-ea9f9e8a3273dae249b71b478e9026be91d1ee33c280edec3d1aa25077f7bd11L100

#732

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions