summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-08 15:08:26 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-08 15:45:14 +0200
commit712c00ecb72b67da2c0788e5d3eb4dcc6366b2a7 (patch)
treef5d7ef4341a4728c980d020cc173fa6bb70feaff /src/lib.rs
parent977ac77e6a3298be2644a8231e93acbef9f7f396 (diff)
Em units
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index cb434e62..6dc52b67 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -34,13 +34,14 @@
#[macro_use]
pub mod util;
#[macro_use]
+pub mod geom;
+#[macro_use]
pub mod diag;
#[macro_use]
pub mod eval;
pub mod export;
pub mod font;
pub mod frame;
-pub mod geom;
pub mod image;
pub mod library;
pub mod loading;
@@ -163,7 +164,7 @@ impl Context {
/// Resolve a user-entered path (relative to the current evaluation
/// location) to be relative to the compilation environment's root.
- pub fn resolve(&self, path: &str) -> PathBuf {
+ pub fn complete_path(&self, path: &str) -> PathBuf {
if let Some(&id) = self.route.last() {
if let Some(dir) = self.sources.get(id).path().parent() {
return dir.join(path);