diff --git a/packages/backend-rs/src/util/id.rs b/packages/backend-rs/src/util/id.rs index 2fd94e9019..9d1427e65d 100644 --- a/packages/backend-rs/src/util/id.rs +++ b/packages/backend-rs/src/util/id.rs @@ -21,7 +21,7 @@ const TIME_2000: i64 = 946_684_800_000; const TIMESTAMP_LENGTH: u16 = 8; /// Initializes Cuid2 generator. Must be called before any [create_id]. -pub fn init_id<'a>(length: u16, fingerprint: &'a str) { +pub fn init_id(length: u16, fingerprint: &str) { FINGERPRINT.get_or_init(move || format!("{}{}", fingerprint, cuid2::create_id())); GENERATOR.get_or_init(move || { cuid2::CuidConstructor::new() diff --git a/packages/backend/src/index.ts b/packages/backend/src/index.ts index ab4c90b33e..36a9176b32 100644 --- a/packages/backend/src/index.ts +++ b/packages/backend/src/index.ts @@ -3,8 +3,8 @@ */ import { EventEmitter } from "node:events"; -import boot from "./boot/index.js"; import { inspect } from "node:util"; +import boot from "./boot/index.js"; Error.stackTraceLimit = Infinity; EventEmitter.defaultMaxListeners = 128; diff --git a/packages/client/src/components/MkAutocomplete.vue b/packages/client/src/components/MkAutocomplete.vue index 88fa83d5c7..9a8582f19a 100644 --- a/packages/client/src/components/MkAutocomplete.vue +++ b/packages/client/src/components/MkAutocomplete.vue @@ -92,10 +92,10 @@ import { ref, watch, } from "vue"; +import { acct } from "firefish-js"; import contains from "@/scripts/contains"; import { char2filePath } from "@/scripts/twemoji-base"; import { getStaticImageUrl } from "@/scripts/get-static-image-url"; -import { acct } from "firefish-js"; import * as os from "@/os"; import { MFM_TAGS } from "@/scripts/mfm-tags"; import { defaultStore } from "@/store"; diff --git a/packages/client/src/components/MkChatPreview.vue b/packages/client/src/components/MkChatPreview.vue index b5075073f7..2857b001a3 100644 --- a/packages/client/src/components/MkChatPreview.vue +++ b/packages/client/src/components/MkChatPreview.vue @@ -65,8 +65,8 @@