Skip to content

Commit

Permalink
nostr: remove alloc from default features
Browse files Browse the repository at this point in the history
Fix clippy
  • Loading branch information
yukibtc committed Sep 6, 2023
1 parent 7f91601 commit ec3e9b2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion crates/nostr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ std = [
"serde_json/std",
"tracing/std",
"url-fork/std",
"alloc",
]
alloc = [
"cbc?/alloc",
Expand Down
2 changes: 1 addition & 1 deletion crates/nostr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The following crate feature flags are available:
| Feature | Default | Description |
| ------------------- | :-----: | ---------------------------------------------------------------------------------------- |
| `std` | Yes | Enable `std` library |
| `alloc` | Yes | Enable `alloc` library |
| `alloc` | No | Needed to use this library in `no_std` context |
| `blocking` | No | Needed to use `NIP-05` and `NIP-11` features in not async/await context |
| `all-nips` | Yes | Enable all NIPs |
| `nip03` | No | Enable NIP-03: OpenTimestamps Attestations for Events |
Expand Down
2 changes: 1 addition & 1 deletion crates/nostr/src/event/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ where
impl From<Tag> for Vec<String> {
fn from(data: Tag) -> Self {
match data {
Tag::Generic(kind, data) => vec![vec![kind.to_string()], data].concat(),
Tag::Generic(kind, data) => [vec![kind.to_string()], data].concat(),
Tag::Event(id, relay_url, marker) => {
let mut tag = vec![TagKind::E.to_string(), id.to_hex()];
if let Some(relay_url) = relay_url {
Expand Down

0 comments on commit ec3e9b2

Please sign in to comment.