diff options
Diffstat (limited to 'std/textproto/mod.ts')
-rw-r--r-- | std/textproto/mod.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/std/textproto/mod.ts b/std/textproto/mod.ts index e5645a9ed..f440ba5d5 100644 --- a/std/textproto/mod.ts +++ b/std/textproto/mod.ts @@ -4,7 +4,6 @@ // license that can be found in the LICENSE file. import { BufReader } from "../io/bufio.ts"; -import { charCode } from "../io/util.ts"; import { concat } from "../bytes/mod.ts"; import { decode } from "../encoding/utf8.ts"; @@ -19,6 +18,10 @@ function str(buf: Uint8Array | null | undefined): string { } } +function charCode(s: string): number { + return s.charCodeAt(0); +} + export class TextProtoReader { constructor(readonly r: BufReader) {} |