From 54146bd6207f0b695e96802fca8ba0bf96715d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Thu, 30 Jan 2025 12:30:22 +0000 Subject: [PATCH] Replace `trim` -> `strip` There's no `trim` function in Julia `Base`. --- src/Devices.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Devices.jl b/src/Devices.jl index 7438f7d0ac..4934625d65 100644 --- a/src/Devices.jl +++ b/src/Devices.jl @@ -49,8 +49,8 @@ function has_tpu() try for path in readdir(devices_dir; join=true, sort=false) - if trim(read(joinpath(path, "vendor"), String)) == _GOOGLE_PCI_VENDOR_ID && - trim(read(joinpath(path, "device"), String)) in _TPU_PCI_DEVICE_IDS + if strip(read(joinpath(path, "vendor"), String)) == _GOOGLE_PCI_VENDOR_ID && + strip(read(joinpath(path, "device"), String)) in _TPU_PCI_DEVICE_IDS return true end end