Skip to content

Instantly share code, notes, and snippets.

View lazywhite's full-sized avatar

lazywhite lazywhite

  • Shanghai China
  • 10:22 (UTC +08:00)
View GitHub Profile
S GameList: Removed configuration file: /Users/jsx/Library/Application Support/rpcs3/custom_configs/config_BLUS30845.yml
S SYS: Updates found at /dev_hdd0/game/BLUS30845/
S PPU: Found SPURS GUID Pattern at 0x6de380
S PPU: Found SPURS GUID Pattern for terminator at 0x6ded00
S PPU: Found valid roaming SPU code at 0x6de380..0x6ded00 (guessed_ls_addr=0x0)
S PPU: Found SPURS GUID Pattern at 0x6e4e00
S PPU: Found SPURS GUID Pattern for terminator at 0x6e5600
S PPU: Found valid roaming SPU code at 0x6e4e00..0x6e5600 (guessed_ls_addr=0x0)
S PPU: Found SPURS GUID Pattern at 0x6ef380
S PPU: Found SPURS GUID Pattern for terminator at 0x6f7400

I enabled rust_analyzer in astronvim, when ParseIntError is not found in this scope, I want to add the import automaticlly.

With Goland, I can use Alt + Enter to see available import, how can I achive this in astronvim?

fn try_to_parse() -> Result<i32, ParseIntError> {     // cannot find type `ParseIntError` in this scope not found in this scope
    let x: i32 = "100".parse()?;
    let y: i32 = "10a".parse()?;
    Ok(x + y)
}
@lazywhite
lazywhite / docker info
Created August 31, 2022 01:44
k3s on ubuntu 20.04 Arm64 error log
root@node1:~# docker info
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.7.1-docker)
Server:
Containers: 106
package main
import (
"fmt"
)
/*
输入文件构成规则如下:
1. 每行代表一条记录,字段之间以逗号(,)分隔