Skip to content

Commit d6acd3a

Browse files
Fix "imported and not used: 'datatypes' [UnusedImport]" warning (#644)
The warning is fixed by only importing KnownSupportsCopyMem from datatypes when in nimdoc mode.
1 parent ec90c0d commit d6acd3a

File tree

1 file changed

+2
-1
lines changed
  • src/arraymancer/laser/primitives/matrix_multiplication

1 file changed

+2
-1
lines changed

src/arraymancer/laser/primitives/matrix_multiplication/gemm.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import
1111

1212
# This import is needed for our current docgen. Otherwise it fails
1313
# on this submodule.
14-
from ../../tensor/datatypes import KnownSupportsCopyMem
14+
when defined(nimdoc):
15+
from ../../tensor/datatypes import KnownSupportsCopyMem
1516

1617
when defined(i386) or defined(amd64):
1718
import ../../cpuinfo_x86

0 commit comments

Comments
 (0)