Skip to content

Commit

Permalink
Merge pull request #3415 from LXIF/patch-1
Browse files Browse the repository at this point in the history
Update imports
  • Loading branch information
jessiemongeon1 authored Sep 4, 2024
2 parents 92f5a8d + 214c193 commit 96c173a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions docs/developer-docs/backend/rust/searching-records.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,8 @@ Then, open the template `src/rust_profile_backend/src/lib.rs` file in a text edi
The next step is to add a Rust program that implements the `getSelf`, `update`, `get`, and `search` functions. To do this, copy and paste this code into the `src/rust_profile_backend/src/lib.rs` file.

```rust title="src/rust_profile_backend/src/lib.rs"
use ic_cdk::{
    export::{
        candid::{CandidType, Deserialize},
        Principal,
    },
    query, update,
};
use candid::{CandidType, Deserialize, Principal};
use ic_cdk::{query, update};
use std::cell::RefCell;
use std::collections::BTreeMap;

Expand Down

0 comments on commit 96c173a

Please sign in to comment.